watch_name_on_connection
Description:
[
CCode ( cname =
"g_bus_watch_name_on_connection_with_closures" ) ]
[
Version ( since =
"2.26" ) ]
public uint watch_name_on_connection (
DBusConnection connection,
string name,
BusNameWatcherFlags flags,
owned BusNameAppearedCallback? name_appeared_closure =
null,
owned BusNameVanishedCallback? name_vanished_closure =
null)
Version of g_bus_watch_name_on_connection
using closures instead of callbacks for easier binding in other languages.
Parameters:
connection |
A DBusConnection.
|
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 can be used with unwatch_name to stop watching
the name.
|