DBusNames.watchNameWithClosures

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

struct DBusNames
static
uint
watchNameWithClosures

Parameters

busType GBusType

The type of bus to watch a name on.

name string

The name (well-known or unique) to watch.

flags GBusNameWatcherFlags

Flags from the GBusNameWatcherFlags enumeration.

nameAppearedClosure Closure

gobject.Closure to invoke when name is known to exist or NULL.

nameVanishedClosure Closure

gobject.Closure to invoke when name is known to not exist or NULL.

Return Value

Type: uint

An identifier (never 0) that can be used with Bus.unwatchName to stop watching the name.

Meta

Since

2.26