Function
Giobus_watch_name_with_closures
since: 2.26
Declaration
guint
g_bus_watch_name_with_closures (
GBusType bus_type,
const gchar* name,
GBusNameWatcherFlags flags,
GClosure* name_appeared_closure,
GClosure* name_vanished_closure
)
Description
Version of g_bus_watch_name() using closures instead of callbacks for
easier binding in other languages.
Available since: 2.26
This method is renamed to g_bus_watch_name() in language bindings
Parameters
bus_type-
Type:
GBusTypeThe type of bus to watch a name on.
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_closure-
Type:
GClosureGClosureto invoke whennameis known to exist orNULL.The argument can be NULL.The data is owned by the caller of the function. name_vanished_closure-
Type:
GClosureGClosureto invoke whennameis known to not exist orNULL.The argument can be NULL.The data is owned by the caller of the function.