Function
Giobus_watch_name_on_connection
since: 2.26
Declaration
guint
g_bus_watch_name_on_connection (
GDBusConnection* connection,
const gchar* name,
GBusNameWatcherFlags flags,
GBusNameAppearedCallback name_appeared_handler,
GBusNameVanishedCallback name_vanished_handler,
gpointer user_data,
GDestroyNotify user_data_free_func
)
Description
Like g_bus_watch_name() but takes a GDBusConnection instead of a
GBusType.
Available since: 2.26
The implementation of this method is provided by g_bus_watch_name_on_connection_with_closures() in language bindings
Parameters
connection-
Type:
GDBusConnectionA
GDBusConnection.The data is owned by the caller of the function. name-
Type:
const gchar*The name (well-known or unique) to watch.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. flags-
Type:
GBusNameWatcherFlagsFlags from the
GBusNameWatcherFlagsenumeration. name_appeared_handler-
Type:
GBusNameAppearedCallbackHandler to invoke when
nameis known to exist orNULL.The argument can be NULL. name_vanished_handler-
Type:
GBusNameVanishedCallbackHandler to invoke when
nameis known to not exist orNULL.The argument can be NULL. user_data-
Type:
gpointerUser data to pass to handlers.
The argument can be NULL.The data is owned by the caller of the function. user_data_free_func-
Type:
GDestroyNotifyFunction for freeing
user_dataorNULL.The argument can be NULL.