DBusNames.ownNameOnConnectionWithClosures

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

struct 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

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