do not retrieve adapter path from dbus message 08/29208/1
authorCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Wed, 22 Oct 2014 11:49:01 +0000 (13:49 +0200)
committerCorentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
Wed, 22 Oct 2014 13:18:21 +0000 (15:18 +0200)
commit8d1488f3419678af48008c3b0697d68c6c42e320
tree7a1d44489b0d53d1362a6e89394f5a5b72f923ee
parent996afe2ae559a36c33b482fbbbe1c2ff01dbd109
do not retrieve adapter path from dbus message

Every where, bluetooth-frwk checks the adapter state before doing an action.
Adapter state is retrieved from parsing dbus message from 'GetManagedObjects' method.
This is only needed to get adapter path from dbus message.
As adapter path is always '/org/bluez/hci0' using Bluez5, define it improves performance.

For example, it fixes a bug in Modello UI when getting default adapter with
bonded devices.

Change-Id: I19e86c0ac269b60773ac3b3e3f62d802ebd40013
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
bt-api/bt-common.c
bt-api/include/bt-common.h
bt-service/bt-service-common.c
bt-service/include/bt-service-common.h