Version of g_bus_watch_name_on_connection using closures instead of callbacks for easier binding in other languages.
| connection | |
| name |
The name (well-known or unique) to watch. |
| flags |
Flags from the BusNameWatcherFlags enumeration. |
| name_appeared_closure |
Closure to invoke when |
| name_vanished_closure |
Closure to invoke when |
|
An identifier (never 0) that an be used with unwatch_name to stop watching the name. |