mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 15:33:39 +02:00
GDBus: add 'monitor' verb to gdbus(1)
This uncovered a bug in name watching if the name wasn't activatable. Also provoked the need for on_connection variants of g_bus_watch_name (added g_bus_watch_proxy's variant as well).
This commit is contained in:
@@ -63,18 +63,29 @@ typedef void (*GBusProxyVanishedCallback) (GDBusConnection *connection,
|
||||
const gchar *name,
|
||||
gpointer user_data);
|
||||
|
||||
guint g_bus_watch_proxy (GBusType bus_type,
|
||||
const gchar *name,
|
||||
GBusNameWatcherFlags flags,
|
||||
const gchar *object_path,
|
||||
const gchar *interface_name,
|
||||
GType interface_type,
|
||||
GDBusProxyFlags proxy_flags,
|
||||
GBusProxyAppearedCallback proxy_appeared_handler,
|
||||
GBusProxyVanishedCallback proxy_vanished_handler,
|
||||
gpointer user_data,
|
||||
GDestroyNotify user_data_free_func);
|
||||
void g_bus_unwatch_proxy (guint watcher_id);
|
||||
guint g_bus_watch_proxy (GBusType bus_type,
|
||||
const gchar *name,
|
||||
GBusNameWatcherFlags flags,
|
||||
const gchar *object_path,
|
||||
const gchar *interface_name,
|
||||
GType interface_type,
|
||||
GDBusProxyFlags proxy_flags,
|
||||
GBusProxyAppearedCallback proxy_appeared_handler,
|
||||
GBusProxyVanishedCallback proxy_vanished_handler,
|
||||
gpointer user_data,
|
||||
GDestroyNotify user_data_free_func);
|
||||
guint g_bus_watch_proxy_on_connection (GDBusConnection *connection,
|
||||
const gchar *name,
|
||||
GBusNameWatcherFlags flags,
|
||||
const gchar *object_path,
|
||||
const gchar *interface_name,
|
||||
GType interface_type,
|
||||
GDBusProxyFlags proxy_flags,
|
||||
GBusProxyAppearedCallback proxy_appeared_handler,
|
||||
GBusProxyVanishedCallback proxy_vanished_handler,
|
||||
gpointer user_data,
|
||||
GDestroyNotify user_data_free_func);
|
||||
void g_bus_unwatch_proxy (guint watcher_id);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user