summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-01-27 21:16:26 +0100
committerMarcel Holtmann <marcel@holtmann.org>2010-01-27 21:18:07 +0100
commit49233dbc2f8b8442e8aa22c6bd82e27422240788 (patch)
tree7bda9c36ecdfdd55a0edb59c97f645bd8bf3e83e /plugins
parentac6672e9b38e69f251a8237fb70612a5455effa4 (diff)
downloadofono-49233dbc2f8b8442e8aa22c6bd82e27422240788.tar.bz2
Limit HFP plugin loading to D-Bus 1.3 only systems
Diffstat (limited to 'plugins')
-rw-r--r--plugins/hfp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/hfp.c b/plugins/hfp.c
index 12b7f0ae..947bfc29 100644
--- a/plugins/hfp.c
+++ b/plugins/hfp.c
@@ -811,6 +811,9 @@ static int hfp_init(void)
{
int err;
+ if (DBUS_TYPE_UNIX_FD < 0)
+ return -EBADF;
+
connection = ofono_dbus_get_connection();
added_watch = g_dbus_add_signal_watch(connection, NULL, NULL,