DBusNames.ownNameWithClosures

Version of Bus.ownName using closures instead of callbacks for easier binding in other languages.

Parameters

busType GBusType

the type of bus to own a name on

name string

the well-known name to own

flags GBusNameOwnerFlags

a set of flags from the GBusNameOwnerFlags enumeration

busAcquiredClosure Closure

gobject.Closure to invoke when connected to the bus of type bus_type or NULL

nameAcquiredClosure Closure

gobject.Closure to invoke when name is acquired or NULL

nameLostClosure Closure

gobject.Closure to invoke when name is lost 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