1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
#ifndef __G_DBUS_UTILS_H__
#define __G_DBUS_UTILS_H__
#include <glib.h>
#include <dbus/dbus.h>
#include <gio/gcancellable.h>
G_BEGIN_DECLS
typedef gboolean (*GFDSourceFunc) (gpointer data,
GIOCondition condition,
int fd);
typedef void (*GAsyncDBusCallback) (DBusMessage *reply,
GError *error,
gpointer user_data);
/* Only used internally, never on wire */
#define G_DBUS_TYPE_CSTRING 1024
GList * _g_dbus_bus_list_names_with_prefix (DBusConnection *connection,
const char *prefix,
DBusError *error);
void _g_dbus_message_iter_append_cstring (DBusMessageIter *iter,
const char *str);
void _g_dbus_message_append_args_valist (DBusMessage *message,
int first_arg_type,
va_list var_args);
void _g_dbus_message_append_args (DBusMessage *message,
int first_arg_type,
...);
dbus_bool_t _g_dbus_message_iter_get_args_valist (DBusMessageIter *iter,
DBusError *error,
int first_arg_type,
va_list var_args);
dbus_bool_t _g_dbus_message_iter_get_args (DBusMessageIter *iter,
DBusError *error,
int first_arg_type,
...);
void _g_error_from_dbus (DBusError *derror,
GError **error);
gboolean _g_error_from_message (DBusMessage *message,
GError **error);
DBusMessage *_dbus_message_new_from_gerror (DBusMessage *message,
GError *error);
DBusMessage *_dbus_message_new_gerror (DBusMessage *message,
GQuark domain,
gint code,
const gchar *format,
...);
char * _g_dbus_unescape_bus_name (const char *escaped,
const char *end);
void _g_dbus_append_escaped_bus_name (GString *string,
gboolean at_start,
const char *unescaped);
void _g_dbus_connection_integrate_with_main (DBusConnection *connection);
void _g_dbus_connection_remove_from_main (DBusConnection *connection);
GSource * __g_fd_source_new (int fd,
gushort events,
GCancellable *cancellable);
void _g_dbus_message_iter_copy (DBusMessageIter *dest,
DBusMessageIter *source);
void _g_dbus_oom (void) G_GNUC_NORETURN;
void _g_dbus_connection_call_async (DBusConnection *connection,
DBusMessage *message,
int timeout_msecs,
GAsyncDBusCallback callback,
gpointer user_data);
G_END_DECLS
#endif /* __G_DBUS_UTILS_H__ */
|