DBusNames.ownNameWithClosures

Version of g_bus_own_name() using closures instead of callbacks for easier binding in other languages. Since 2.26

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. [allow-none]

nameAcquiredClosure Closure

GClosure to invoke when name is acquired or NULL. [allow-none]

nameLostClosure Closure

GClosure to invoke when name is lost or NULL. [allow-none]

Return Value

Type: uint

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

Meta