DBusNames.ownNameOnConnection

Like g_bus_own_name() but takes a GDBusConnection instead of a GBusType. Since 2.26

Parameters

connection DBusConnection

A GDBusConnection.

name string

The well-known name to own.

flags GBusNameOwnerFlags

A set of flags from the GBusNameOwnerFlags enumeration.

nameAcquiredHandler GBusNameAcquiredCallback

Handler to invoke when name is acquired or NULL.

nameLostHandler GBusNameLostCallback

Handler to invoke when name is lost or NULL.

userData void*

User data to pass to handlers.

userDataFreeFunc GDestroyNotify

Function for freeing user_data or NULL.

Return Value

Type: uint

An identifier (never 0) that an be used with g_bus_unown_name() to stop owning the name.

Meta