D-Bus 1.14.10
dbus-asv-util.h
1/* dbus-asv-util.h - utility functions for a{sv}
2 *
3 * Copyright © 2011-2012 Nokia Corporation
4 * Copyright © 2012-2013 Collabora Ltd.
5 *
6 * Licensed under the Academic Free License version 2.1
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 * 02110-1301 USA
22 */
23
24#ifndef DBUS_ASV_UTIL_H
25#define DBUS_ASV_UTIL_H
26
27#include <dbus/dbus-internals.h>
28
30
31DBusMessage *_dbus_asv_new_method_return (DBusMessage *message,
32 DBusMessageIter *iter,
33 DBusMessageIter *arr_iter);
34dbus_bool_t _dbus_asv_close (DBusMessageIter *iter,
35 DBusMessageIter *arr_iter);
36void _dbus_asv_abandon (DBusMessageIter *iter,
37 DBusMessageIter *arr_iter);
38
39dbus_bool_t _dbus_asv_add_uint32 (DBusMessageIter *arr_iter,
40 const char *key,
41 dbus_uint32_t value);
42dbus_bool_t _dbus_asv_add_string (DBusMessageIter *arr_iter,
43 const char *key,
44 const char *value);
45dbus_bool_t _dbus_asv_add_object_path (DBusMessageIter *arr_iter,
46 const char *key,
47 const char *value);
48dbus_bool_t _dbus_asv_add_fixed_array (DBusMessageIter *arr_iter,
49 const char *key,
50 char element_type,
51 const void *value,
52 int n_elements);
53dbus_bool_t _dbus_asv_add_byte_array (DBusMessageIter *arr_iter,
54 const char *key,
55 const void *value,
56 int n_elements);
57dbus_bool_t _dbus_asv_open_entry (DBusMessageIter *arr_iter,
58 DBusMessageIter *entry_iter,
59 const char *key,
60 const char *type,
61 DBusMessageIter *var_iter);
62dbus_bool_t _dbus_asv_close_entry (DBusMessageIter *arr_iter,
63 DBusMessageIter *entry_iter,
64 DBusMessageIter *var_iter);
65void _dbus_asv_abandon_entry (DBusMessageIter *arr_iter,
66 DBusMessageIter *entry_iter,
67 DBusMessageIter *var_iter);
68
69#endif
#define DBUS_BEGIN_DECLS
Macro used prior to declaring functions in the D-Bus header files.
dbus_uint32_t dbus_bool_t
A boolean, valid values are TRUE and FALSE.
Definition: dbus-types.h:35
DBusMessageIter struct; contains no public fields.
Definition: dbus-message.h:62
Internals of DBusMessage.