DBusNames.ownNameWithClosures

Version of g_bus_own_name() 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

#GClosure to invoke when connected to the bus of type @bus_type or %NULL

nameAcquiredClosure Closure

#GClosure to invoke when @name is acquired or %NULL

nameLostClosure Closure

#GClosure to invoke when @name is lost or %NULL

Return Value

Type: uint

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

Meta

Since

2.26