busOwnName

Version of gio.global.busOwnName using closures instead of callbacks for easier binding in other languages.

Parameters

busType gio.types.BusType

the type of bus to own a name on

name string

the well-known name to own

flags gio.types.BusNameOwnerFlags

a set of flags from the #GBusNameOwnerFlags enumeration

busAcquiredClosure gobject.closure.Closure

#GClosure to invoke when connected to the bus of type bus_type or null

nameAcquiredClosure gobject.closure.Closure

#GClosure to invoke when name is acquired or null

nameLostClosure gobject.closure.Closure

#GClosure to invoke when name is lost or null

Return Value

Type: uint

an identifier (never 0) that can be used with gio.global.busUnownName to stop owning the name.