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.
Paulo Borges 2013-03-20 19:26:37 -03:00 committed by Daniel Wagner
parent 92c1273507
commit 9e90988fb4
1 changed files with 18 additions and 0 deletions

View File

@ -52,6 +52,24 @@ 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)
static void bluetooth_device_disconnect(struct dundee_device *device,
dundee_device_disconnect_cb_t cb, void *data)
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)