aboutsummaryrefslogtreecommitdiff
path: root/src/lib/include/gnunet_dbus_lib_message.h
blob: e575823a2d368a820ae99fd5dd5149eccdea6425 (plain) (blame)
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
#ifndef GNUNET_DBUS_LIB_MESSAGE_H
#define GNUNET_DBUS_LIB_MESSAGE_H

#include <stdbool.h>
#include <dbus/dbus.h>

#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