Upgrade bluez5_37 :Merge the code from private
[platform/upstream/bluez.git] / src / dbus-common.h
1 /* *
2  *  BlueZ - Bluetooth protocol stack for Linux
3  *
4  *  Copyright (C) 2006-2010  Nokia Corporation
5  *  Copyright (C) 2004-2010  Marcel Holtmann <marcel@holtmann.org>
6  *
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 St, Fifth Floor, Boston, MA  02110-1301  USA
21  *
22  */
23
24 void dict_append_basic(DBusMessageIter *dict, int key_type, const void *key,
25                                                 int type, void *val);
26 void dict_append_entry(DBusMessageIter *dict,
27                         const char *key, int type, void *val);
28
29 void dict_append_basic_array(DBusMessageIter *dict, int key_type,
30                                         const void *key, int type, void *val,
31                                         int n_elements);
32 void dict_append_array(DBusMessageIter *dict, const char *key, int type,
33                         void *val, int n_elements);
34
35 void set_dbus_connection(DBusConnection *conn);
36 DBusConnection *btd_get_dbus_connection(void);
37
38 const char *class_to_icon(uint32_t class);
39 const char *gap_appearance_to_icon(uint16_t appearance);