Function
Giobus_own_name_on_connection_with_closures
since: 2.26
Declaration
guint
g_bus_own_name_on_connection_with_closures (
GDBusConnection* connection,
const gchar* name,
GBusNameOwnerFlags flags,
GClosure* name_acquired_closure,
GClosure* name_lost_closure
)
Description
Version of g_bus_own_name_on_connection() using closures instead of
callbacks for easier binding in other languages.
Available since: 2.26
This method is renamed to g_bus_own_name_on_connection() in language bindings
Parameters
connection-
Type:
GDBusConnectionA
GDBusConnection.The data is owned by the caller of the function. name-
Type:
const gchar*The well-known name to own.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. flags-
Type:
GBusNameOwnerFlagsA set of flags from the
GBusNameOwnerFlagsenumeration. name_acquired_closure-
Type:
GClosureGClosureto invoke whennameis acquired orNULL.The argument can be NULL.The data is owned by the caller of the function. name_lost_closure-
Type:
GClosureGClosureto invoke whennameis lost orNULL.The argument can be NULL.The data is owned by the caller of the function.