File indexing completed on 2026-01-04 09:44:51
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
0059 typedef void (*GBusNameAcquiredCallback) (GDBusConnection *connection,
0060 const gchar *name,
0061 gpointer user_data);
0062
0063
0064
0065
0066
0067
0068
0069
0070
0071
0072
0073
0074
0075 typedef void (*GBusNameLostCallback) (GDBusConnection *connection,
0076 const gchar *name,
0077 gpointer user_data);
0078
0079 GIO_AVAILABLE_IN_ALL
0080 guint g_bus_own_name (GBusType bus_type,
0081 const gchar *name,
0082 GBusNameOwnerFlags flags,
0083 GBusAcquiredCallback bus_acquired_handler,
0084 GBusNameAcquiredCallback name_acquired_handler,
0085 GBusNameLostCallback name_lost_handler,
0086 gpointer user_data,
0087 GDestroyNotify user_data_free_func);
0088
0089 GIO_AVAILABLE_IN_ALL
0090 guint g_bus_own_name_on_connection (GDBusConnection *connection,
0091 const gchar *name,
0092 GBusNameOwnerFlags flags,
0093 GBusNameAcquiredCallback name_acquired_handler,
0094 GBusNameLostCallback name_lost_handler,
0095 gpointer user_data,
0096 GDestroyNotify user_data_free_func);
0097
0098 GIO_AVAILABLE_IN_ALL
0099 guint g_bus_own_name_with_closures (GBusType bus_type,
0100 const gchar *name,
0101 GBusNameOwnerFlags flags,
0102 GClosure *bus_acquired_closure,
0103 GClosure *name_acquired_closure,
0104 GClosure *name_lost_closure);
0105
0106 GIO_AVAILABLE_IN_ALL
0107 guint g_bus_own_name_on_connection_with_closures (
0108 GDBusConnection *connection,
0109 const gchar *name,
0110 GBusNameOwnerFlags flags,
0111 GClosure *name_acquired_closure,
0112 GClosure *name_lost_closure);
0113
0114 GIO_AVAILABLE_IN_ALL
0115 void g_bus_unown_name (guint owner_id);
0116
0117 G_END_DECLS
0118
0119 #endif