use bluez dbus api to enable/disable adapter 69/28869/2
authorCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Thu, 16 Oct 2014 13:36:24 +0000 (15:36 +0200)
committerCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Mon, 20 Oct 2014 16:01:17 +0000 (18:01 +0200)
commitf8e885220ef2550196796eb81c4f0d89e3060bce
tree5d8b2b20f52e4508fc257d503aaf8376980222e5
parent4fdf447a14076df1b2695d2cddbabc8b69aff08e
use bluez dbus api to enable/disable adapter

It was previously done invoking bluetooth-tools scripts.
For example, to disable adapter, one of the script kills bluez daemon process.
Now we just modify 'Powered' adapter property.

The patch also removes the timeout callback when enabling adapter since it can
disable adapter if the status is not correct. This adapter status is handled
by bluez4 adapter dbus api code which needs to be adapted.

Change-Id: I4bb5c4c03462a7fe9957e32dd8b196d37f358d30
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
bt-core/bt_core.c
bt-core/bt_core.h
bt-service/bt-service-adapter.c
bt-service/bt-service-event-receiver.c