DBusNames.ownNameOnConnectionWithClosures

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

struct DBusNames
static
uint
ownNameOnConnectionWithClosures

Parameters

connection DBusConnection
name string

the well-known name to own

flags GBusNameOwnerFlags

a set of flags from the GBusNameOwnerFlags enumeration

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