watch_name


Description:

[ Version ( since = "2.26" ) ]
public uint watch_name (BusType bus_type, string name, BusNameWatcherFlags flags, owned BusNameAppearedCallback? name_appeared_closure = null, owned BusNameVanishedCallback? name_vanished_closure = null)

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

Parameters:

bus_type

The type of bus to watch a name on.

name

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

flags

Flags from the BusNameWatcherFlags enumeration.

name_appeared_closure

Closure to invoke when name is known to exist or null.

name_vanished_closure

Closure to invoke when name is known to not exist or null.

Returns:

An identifier (never 0) that an be used with unwatch_name to stop watching the name.


Namespace: GLib.Bus
Package: gio-2.0