aboutsummaryrefslogtreecommitdiff
path: root/src/lib/include/gnunet_dht_dbus_lib_pop.h
blob: e69587b44f821df137fc79febfd0315227f151be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef GNUNET_DHT_DBUS_LIB_POP_H
#define GNUNET_DHT_DBUS_LIB_POP_H

#include "gnunet_dht_dbus_lib.h"

/**
 * Pop a GNUNET_DHT_RouteOption from a DBusMessage, advancing the iterator.
 * `arg_name` is used for reporting useful diagnostics if the value in the
 * message is missing or the wrong type.
 */
DBusMessage *
GNUNET_DHT_DBUS_pop_route_option (
    DBusMessage *message,
    DBusMessageIter *iter,
    const char *arg_name,
    enum GNUNET_DHT_RouteOption *value);

#endif