Content-Type: multipart/mixed; boundary="===============8496576791120655485==" MIME-Version: 1.0 From: Paulo Borges Subject: [PATCH 08/13] dundee: Add dundee device driver skeleton Date: Mon, 04 Mar 2013 16:33:09 -0300 Message-ID: <1362425590-26075-9-git-send-email-paulo.borges@openbossa.org> In-Reply-To: <1362425590-26075-1-git-send-email-paulo.borges@openbossa.org> List-Id: To: ofono@ofono.org --===============8496576791120655485== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable This patch adds the functions to be called when the dundee will connect or disconnect with a Bluetooth device. --- dundee/bluez5.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/dundee/bluez5.c b/dundee/bluez5.c index 623201f..19111e7 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 =3D { + .name =3D "bluetooth", + .connect =3D bluetooth_device_connect, + .disconnect =3D bluetooth_device_disconnect, +}; + static struct bluetooth_device *bluetooth_device_create(const char *path, const char *address, const char *alias) { -- = 1.7.9.5 --===============8496576791120655485==--