3
* oFono - Open Telephony stack for Linux
5
* Copyright (C) 2008-2009 Intel Corporation. All rights reserved.
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License version 2 as
9
* published by the Free Software Foundation.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22
#ifndef __OFONO_DBUS_H
23
#define __OFONO_DBUS_H
29
#include <dbus/dbus.h>
31
#define OFONO_SERVICE "org.ofono"
32
#define OFONO_MANAGER_INTERFACE "org.ofono.Manager"
33
#define OFONO_MANAGER_PATH "/"
34
#define OFONO_MODEM_INTERFACE "org.ofono.Modem"
36
/* Essentially a{sv} */
37
#define OFONO_PROPERTIES_ARRAY_SIGNATURE DBUS_DICT_ENTRY_BEGIN_CHAR_AS_STRING \
38
DBUS_TYPE_STRING_AS_STRING \
39
DBUS_TYPE_VARIANT_AS_STRING \
40
DBUS_DICT_ENTRY_END_CHAR_AS_STRING
42
DBusConnection *ofono_dbus_get_connection();
44
void ofono_dbus_dict_append(DBusMessageIter *dict, const char *key, int type,
47
void ofono_dbus_dict_append_array(DBusMessageIter *dict, const char *key,
50
int ofono_dbus_signal_property_changed(DBusConnection *conn, const char *path,
51
const char *interface, const char *name,
52
int type, void *value);
54
int ofono_dbus_signal_array_property_changed(DBusConnection *conn,
56
const char *interface,
57
const char *name, int type,
64
#endif /* __OFONO_DBUS_H */