busWatchName

Version of gio.global.busWatchName using closures instead of callbacks for easier binding in other languages.

Parameters

busType gio.types.BusType

The type of bus to watch a name on.

name string

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

flags gio.types.BusNameWatcherFlags

Flags from the #GBusNameWatcherFlags enumeration.

nameAppearedClosure gobject.closure.Closure

#GClosure to invoke when name is known to exist or null.

nameVanishedClosure gobject.closure.Closure

#GClosure to invoke when name is known to not exist or null.

Return Value

Type: uint

An identifier (never 0) that can be used with gio.global.busUnwatchName to stop watching the name.