• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #define MAX_PATH_LENGTH 64
25 
26 void dict_append_entry(DBusMessageIter *dict,
27 			const char *key, int type, void *val);
28 
29 void dict_append_array(DBusMessageIter *dict, const char *key, int type,
30 			void *val, int n_elements);
31 
32 dbus_bool_t emit_property_changed(DBusConnection *conn,
33 					const char *path,
34 					const char *interface,
35 					const char *name,
36 					int type, void *value);
37 
38 dbus_bool_t emit_array_property_changed(DBusConnection *conn,
39 					const char *path,
40 					const char *interface,
41 					const char *name,
42 					int type, void *value, int num);
43 
44 void set_dbus_connection(DBusConnection *conn);
45 DBusConnection *get_dbus_connection(void);
46 
47 const char *class_to_icon(uint32_t class);
48