File indexing completed on 2025-01-18 09:59:55
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023 #ifndef __G_DBUS_NAME_WATCHING_H__
0024 #define __G_DBUS_NAME_WATCHING_H__
0025
0026 #if !defined (__GIO_GIO_H_INSIDE__) && !defined (GIO_COMPILATION)
0027 #error "Only <gio/gio.h> can be included directly."
0028 #endif
0029
0030 #include <gio/giotypes.h>
0031
0032 G_BEGIN_DECLS
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045 typedef void (*GBusNameAppearedCallback) (GDBusConnection *connection,
0046 const gchar *name,
0047 const gchar *name_owner,
0048 gpointer user_data);
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065 typedef void (*GBusNameVanishedCallback) (GDBusConnection *connection,
0066 const gchar *name,
0067 gpointer user_data);
0068
0069
0070 GIO_AVAILABLE_IN_ALL
0071 guint g_bus_watch_name (GBusType bus_type,
0072 const gchar *name,
0073 GBusNameWatcherFlags flags,
0074 GBusNameAppearedCallback name_appeared_handler,
0075 GBusNameVanishedCallback name_vanished_handler,
0076 gpointer user_data,
0077 GDestroyNotify user_data_free_func);
0078 GIO_AVAILABLE_IN_ALL
0079 guint g_bus_watch_name_on_connection (GDBusConnection *connection,
0080 const gchar *name,
0081 GBusNameWatcherFlags flags,
0082 GBusNameAppearedCallback name_appeared_handler,
0083 GBusNameVanishedCallback name_vanished_handler,
0084 gpointer user_data,
0085 GDestroyNotify user_data_free_func);
0086 GIO_AVAILABLE_IN_ALL
0087 guint g_bus_watch_name_with_closures (GBusType bus_type,
0088 const gchar *name,
0089 GBusNameWatcherFlags flags,
0090 GClosure *name_appeared_closure,
0091 GClosure *name_vanished_closure);
0092 GIO_AVAILABLE_IN_ALL
0093 guint g_bus_watch_name_on_connection_with_closures (
0094 GDBusConnection *connection,
0095 const gchar *name,
0096 GBusNameWatcherFlags flags,
0097 GClosure *name_appeared_closure,
0098 GClosure *name_vanished_closure);
0099 GIO_AVAILABLE_IN_ALL
0100 void g_bus_unwatch_name (guint watcher_id);
0101
0102 G_END_DECLS
0103
0104 #endif