DBusNames.ownNameOnConnection

Like Bus.ownName but takes a gio.DBusConnection instead of a GBusType

Parameters

connection DBusConnection
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 can be used with Bus.unownName to stop owning the name

Meta

Since

2.26