dundee: Add dundee device driver skeleton
authorPaulo Borges <paulo.borges@openbossa.org>
Wed, 20 Mar 2013 22:26:37 +0000 (19:26 -0300)
committerDaniel Wagner <daniel.wagner@bmw-carit.de>
Sun, 24 Mar 2013 12:22:10 +0000 (13:22 +0100)
This patch adds the functions to be called when the dundee will
connect or disconnect with a Bluetooth device.

dundee/bluez5.c

index d9114fa..06a386c 100644 (file)
@@ -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)
 {