own_name_on_connection
Description:
[ CCode ( cname = "g_bus_own_name_on_connection_with_closures" ) ]
[ Version ( since = "2.26" ) ]
public uint own_name_on_connection (DBusConnection connection, string name, BusNameOwnerFlags flags, owned BusNameAcquiredCallback? name_acquired_closure = null, owned BusNameLostCallback? name_lost_closure = null)
[ Version ( since = "2.26" ) ]
public uint own_name_on_connection (DBusConnection connection, string name, BusNameOwnerFlags flags, owned BusNameAcquiredCallback? name_acquired_closure = null, owned BusNameLostCallback? name_lost_closure = null)
Version of [func@Gio.
bus_own_name_on_connection] using closures instead of callbacks for easier binding in other languages.
Parameters:
| connection |
a bus connection |
| name |
the well-known name to own |
| flags |
a set of flags with ownership options |
| name_acquired_closure |
closure to invoke when |
| name_lost_closure |
closure to invoke when |
Returns:
|
an identifier (never 0) that can be used with [func@Gio.bus_unown_name] to stop owning the name. |
Namespace: GLib.Bus
Package: gio-2.0