1 /* dbus-asv-util.h - utility functions for a{sv}
3 * Copyright © 2011-2012 Nokia Corporation
4 * Copyright © 2012-2013 Collabora Ltd.
6 * Licensed under the Academic Free License version 2.1
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.
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.
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
24 #ifndef DBUS_ASV_UTIL_H
25 #define DBUS_ASV_UTIL_H
27 #include <dbus/dbus-internals.h>
32 DBusMessage *_dbus_asv_new_method_return (DBusMessage *message,
33 DBusMessageIter *iter,
34 DBusMessageIter *arr_iter);
36 dbus_bool_t _dbus_asv_close (DBusMessageIter *iter,
37 DBusMessageIter *arr_iter);
39 void _dbus_asv_abandon (DBusMessageIter *iter,
40 DBusMessageIter *arr_iter);
43 dbus_bool_t _dbus_asv_add_uint32 (DBusMessageIter *arr_iter,
47 dbus_bool_t _dbus_asv_add_string (DBusMessageIter *arr_iter,
51 dbus_bool_t _dbus_asv_add_byte_array (DBusMessageIter *arr_iter,
57 dbus_bool_t _dbus_asv_open_entry (DBusMessageIter *arr_iter,
58 DBusMessageIter *entry_iter,
61 DBusMessageIter *var_iter);
64 dbus_bool_t _dbus_asv_close_entry (DBusMessageIter *arr_iter,
65 DBusMessageIter *entry_iter,
66 DBusMessageIter *var_iter);
69 void _dbus_asv_abandon_entry (DBusMessageIter *arr_iter,
70 DBusMessageIter *entry_iter,
71 DBusMessageIter *var_iter);