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_OWNING_H__
0024 #define __G_DBUS_NAME_OWNING_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 typedef void (*GBusAcquiredCallback) (GDBusConnection *connection,
0045 const gchar *name,
0046 gpointer user_data);
0047
0048
0049
0050
0051
0052
0053
0054
0055
0056
0057
0058 typedef void (*GBusNameAcquiredCallback) (GDBusConnection *connection,
0059 const gchar *name,
0060 gpointer user_data);
0061
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073 typedef void (*GBusNameLostCallback) (GDBusConnection *connection,
0074 const gchar *name,
0075 gpointer user_data);
0076
0077 GIO_AVAILABLE_IN_ALL
0078 guint g_bus_own_name (GBusType bus_type,
0079 const gchar *name,
0080 GBusNameOwnerFlags flags,
0081 GBusAcquiredCallback bus_acquired_handler,
0082 GBusNameAcquiredCallback name_acquired_handler,
0083 GBusNameLostCallback name_lost_handler,
0084 gpointer user_data,
0085 GDestroyNotify user_data_free_func);
0086
0087 GIO_AVAILABLE_IN_ALL
0088 guint g_bus_own_name_on_connection (GDBusConnection *connection,
0089 const gchar *name,
0090 GBusNameOwnerFlags flags,
0091 GBusNameAcquiredCallback name_acquired_handler,
0092 GBusNameLostCallback name_lost_handler,
0093 gpointer user_data,
0094 GDestroyNotify user_data_free_func);
0095
0096 GIO_AVAILABLE_IN_ALL
0097 guint g_bus_own_name_with_closures (GBusType bus_type,
0098 const gchar *name,
0099 GBusNameOwnerFlags flags,
0100 GClosure *bus_acquired_closure,
0101 GClosure *name_acquired_closure,
0102 GClosure *name_lost_closure);
0103
0104 GIO_AVAILABLE_IN_ALL
0105 guint g_bus_own_name_on_connection_with_closures (
0106 GDBusConnection *connection,
0107 const gchar *name,
0108 GBusNameOwnerFlags flags,
0109 GClosure *name_acquired_closure,
0110 GClosure *name_lost_closure);
0111
0112 GIO_AVAILABLE_IN_ALL
0113 void g_bus_unown_name (guint owner_id);
0114
0115 G_END_DECLS
0116
0117 #endif