From 3a9559be89f5992a6e0b8980f6b40ddce7ffef07 Mon Sep 17 00:00:00 2001 From: ng0 Date: Tue, 26 Nov 2019 15:27:42 +0000 Subject: init gnunet-dbus from SVN snapshot (restore lost data after crash). --- src/lib/include/gnunet_dbus_lib_message.h | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/lib/include/gnunet_dbus_lib_message.h (limited to 'src/lib/include/gnunet_dbus_lib_message.h') 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 @@ +#ifndef GNUNET_DBUS_LIB_MESSAGE_H +#define GNUNET_DBUS_LIB_MESSAGE_H + +#include +#include + +#include "gnunet_dbus_lib_client.h" + +/** + * Get the value of this message's pretty-encoding flag. This flag controls + * whether data pushed to the message will be pretty-encoded for transmission + * over DBus. + */ +bool +GNUNET_DBUS_message_get_pretty ( + DBusMessage *message); + +/** + * Set the value of this message's pretty-encoding flag. This flag controls + * whether data pushed to the message will be pretty-encoded for transmission + * over DBus. + */ +void +GNUNET_DBUS_message_set_pretty ( + DBusMessage *message, + bool pretty); + +/** + * Set the destination of this message to the DBus address of the + * GNUNET_DBUS_Client. + */ +void +GNUNET_DBUS_message_set_destination ( + DBusMessage *message, + struct GNUNET_DBUS_Client *client); + +/** + * Set the destination of this message to NULL. + */ +void +GNUNET_DBUS_message_unset_destination ( + DBusMessage *message); + +#endif + -- cgit v1.2.3