D-Bus  1.10.12
dbus-asv-util.h
00001 /* dbus-asv-util.h - utility functions for a{sv}
00002  *
00003  * Copyright © 2011-2012 Nokia Corporation
00004  * Copyright © 2012-2013 Collabora Ltd.
00005  *
00006  * Licensed under the Academic Free License version 2.1
00007  *
00008  * This program is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation; either version 2 of the License, or
00011  * (at your option) any later version.
00012  *
00013  * This program is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016  * GNU General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU General Public License
00019  * along with this program; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00021  * 02110-1301 USA
00022  */
00023 
00024 #ifndef DBUS_ASV_UTIL_H
00025 #define DBUS_ASV_UTIL_H
00026 
00027 #include <dbus/dbus-internals.h>
00028 
00029 DBUS_BEGIN_DECLS
00030 
00031 DBusMessage *_dbus_asv_new_method_return (DBusMessage      *message,
00032                                           DBusMessageIter  *iter,
00033                                           DBusMessageIter  *arr_iter);
00034 dbus_bool_t  _dbus_asv_close             (DBusMessageIter *iter,
00035                                           DBusMessageIter *arr_iter);
00036 void         _dbus_asv_abandon           (DBusMessageIter *iter,
00037                                           DBusMessageIter *arr_iter);
00038 
00039 dbus_bool_t  _dbus_asv_add_uint32        (DBusMessageIter *arr_iter,
00040                                           const char      *key,
00041                                           dbus_uint32_t    value);
00042 dbus_bool_t  _dbus_asv_add_string        (DBusMessageIter *arr_iter,
00043                                           const char      *key,
00044                                           const char      *value);
00045 dbus_bool_t  _dbus_asv_add_byte_array    (DBusMessageIter *arr_iter,
00046                                           const char      *key,
00047                                           const void      *value,
00048                                           int              n_elements);
00049 
00050 #endif