DBusNames.ownNameOnConnectionWithClosures

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

class DBusNames
static
uint
ownNameOnConnectionWithClosures

Parameters

connection DBusConnection

A GDBusConnection.

name string

The well-known name to own.

flags GBusNameOwnerFlags

A set of flags from the GBusNameOwnerFlags enumeration.

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_on_connection

Meta