diff options
Diffstat (limited to 'src/lib/include/gnunet_dbus_lib_message.h')
-rw-r--r-- | src/lib/include/gnunet_dbus_lib_message.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/lib/include/gnunet_dbus_lib_message.h b/src/lib/include/gnunet_dbus_lib_message.h new file mode 100644 index 0000000..e575823 --- /dev/null +++ b/src/lib/include/gnunet_dbus_lib_message.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef GNUNET_DBUS_LIB_MESSAGE_H | ||
2 | #define GNUNET_DBUS_LIB_MESSAGE_H | ||
3 | |||
4 | #include <stdbool.h> | ||
5 | #include <dbus/dbus.h> | ||
6 | |||
7 | #include "gnunet_dbus_lib_client.h" | ||
8 | |||
9 | /** | ||
10 | * Get the value of this message's pretty-encoding flag. This flag controls | ||
11 | * whether data pushed to the message will be pretty-encoded for transmission | ||
12 | * over DBus. | ||
13 | */ | ||
14 | bool | ||
15 | GNUNET_DBUS_message_get_pretty ( | ||
16 | DBusMessage *message); | ||
17 | |||
18 | /** | ||
19 | * Set the value of this message's pretty-encoding flag. This flag controls | ||
20 | * whether data pushed to the message will be pretty-encoded for transmission | ||
21 | * over DBus. | ||
22 | */ | ||
23 | void | ||
24 | GNUNET_DBUS_message_set_pretty ( | ||
25 | DBusMessage *message, | ||
26 | bool pretty); | ||
27 | |||
28 | /** | ||
29 | * Set the destination of this message to the DBus address of the | ||
30 | * GNUNET_DBUS_Client. | ||
31 | */ | ||
32 | void | ||
33 | GNUNET_DBUS_message_set_destination ( | ||
34 | DBusMessage *message, | ||
35 | struct GNUNET_DBUS_Client *client); | ||
36 | |||
37 | /** | ||
38 | * Set the destination of this message to NULL. | ||
39 | */ | ||
40 | void | ||
41 | GNUNET_DBUS_message_unset_destination ( | ||
42 | DBusMessage *message); | ||
43 | |||
44 | #endif | ||
45 | |||