diff options
author | Paulo Borges <paulo.borges@openbossa.org> | 2013-03-20 19:26:37 -0300 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2013-03-24 13:22:10 +0100 |
commit | 9e90988fb4f573f292e4f0497d60833fcb35e047 (patch) | |
tree | 325c2d911e66784eb65085136d1aa66c9cea37f6 /dundee | |
parent | 92c1273507a481ccff659a0e10b310da2348f834 (diff) | |
download | ofono-9e90988fb4f573f292e4f0497d60833fcb35e047.tar.bz2 |
dundee: Add dundee device driver skeleton
This patch adds the functions to be called when the dundee will
connect or disconnect with a Bluetooth device.
Diffstat (limited to 'dundee')
-rw-r--r-- | dundee/bluez5.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dundee/bluez5.c b/dundee/bluez5.c index d9114fae..06a386cd 100644 --- a/dundee/bluez5.c +++ b/dundee/bluez5.c @@ -52,6 +52,24 @@ static void bluetooth_device_destroy(gpointer user_data) g_free(bt_device); } +static void bluetooth_device_connect(struct dundee_device *device, + dundee_device_connect_cb_t cb, void *data) +{ + DBG(""); +} + +static void bluetooth_device_disconnect(struct dundee_device *device, + dundee_device_disconnect_cb_t cb, void *data) +{ + DBG(""); +} + +struct dundee_device_driver bluetooth_driver = { + .name = "bluetooth", + .connect = bluetooth_device_connect, + .disconnect = bluetooth_device_disconnect, +}; + static struct bluetooth_device *bluetooth_device_create(const char *path, const char *address, const char *alias) { |