aboutsummaryrefslogtreecommitdiff
path: root/src/lib/include/gnunet_block_dbus_lib_pop.h
blob: ac8ce30cc73db5556b5f233f055dba7a7e7fea4a (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
#ifndef GNUNET_BLOCK_DBUS_LIB_POP_H
#define GNUNET_BLOCK_DBUS_LIB_POP_H

#include <dbus/dbus.h>
#include <gnunet/platform.h>
#include <gnunet/gnunet_common.h>
#include <gnunet/gnunet_block_lib.h>

#include "gnunet_dbus_lib_method_context.h"

/**
 * Pop a GNUNET_DBUS_Type off of a DBusMessage, moving the iterator.
 * `arg_name` is used for reporting useful diagnostics if the value in the
 * message is missing or the wrong type.
 */
DBusMessage *
GNUNET_BLOCK_DBUS_pop_type (
    DBusMessage *message,
    DBusMessageIter *iter,
    const char *arg_name,
    enum GNUNET_BLOCK_Type *value);

#endif