diff options
author | Paulo Borges <paulo.borges@openbossa.org> | 2013-03-20 19:26:40 -0300 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2013-03-24 13:23:07 +0100 |
commit | bd29b330830c6a55b2c2cb6ee9f3a1ea70c0d705 (patch) | |
tree | fcc4564469f50fdc80851e9836348b0261a5111a /dundee | |
parent | ce933c58a8470be0b1aad2916bc90d978f39e963 (diff) | |
download | ofono-bd29b330830c6a55b2c2cb6ee9f3a1ea70c0d705.tar.bz2 |
dundee: Add support for driver connect
This patch glues together the dundee driver interface with the
D-Bus Profile1 interface.
When the dundee driver requests a connection, it will call the
Device1's ConnectProfile.
Diffstat (limited to 'dundee')
-rw-r--r-- | dundee/bluez5.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dundee/bluez5.c b/dundee/bluez5.c index e927835a..3ecc9cf3 100644 --- a/dundee/bluez5.c +++ b/dundee/bluez5.c @@ -114,7 +114,12 @@ static void bluetooth_device_destroy(gpointer user_data) static void bluetooth_device_connect(struct dundee_device *device, dundee_device_connect_cb_t cb, void *data) { - DBG(""); + struct bluetooth_device *bt_device = dundee_device_get_data(device); + + DBG("%s", bt_device->path); + + bt_connect_profile(ofono_dbus_get_connection(), bt_device->path, + DUN_GW_UUID, NULL, NULL); } static void bluetooth_device_disconnect(struct dundee_device *device, |