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 of g_bus_own_name_on_connection
using closures instead of callbacks for easier binding in other languages.
Parameters:
connection |
a DBusConnection
|
name |
the well-known name to own
|
flags |
a set of flags from the BusNameOwnerFlags enumeration
|
name_acquired_closure |
Closure to invoke when name is acquired or null
|
name_lost_closure |
Closure to invoke when name is lost or null
|
Returns:
an identifier (never 0) that can be used with unown_name to stop owning the
name.
|