[Adapt]Add OAL and implement Bluez HAL lib 86/77286/1
authorAnupam Roy <anupam.r@samsung.com>
Wed, 29 Jun 2016 08:39:13 +0000 (04:39 -0400)
committerAnupam Roy <anupam.r@samsung.com>
Wed, 29 Jun 2016 08:39:13 +0000 (04:39 -0400)
commitbf42e39f420c4a5e16f5311c3201021e189d0808
tree7d009f56ce2e6e8e985f2d4218d30963099de599
parent4b206bca8888fea33219172b0774c70829030d3e
[Adapt]Add OAL and implement Bluez HAL lib

This patch does following-

1/Create HAL or Hardware Abstraction Layer
 in Tizen BT framework which serves as the main
 stack abstraction layer. HAL interfaces are
 adopted from Bluez for Android(BFA) project.
 In case of Bluez, HAL implementation  will
 handle conversion of API calls to Bluez DBUS
 method calls and also converting DBUS events
 to API callbacks to HAL user.

2/Add BT OAL (Open Source Adaptation Layer)
 This layer will serve a stack independent
 interface beneath Tizen bt-service. All
 stack specific events will be converted to
 OAL specific events and dispatched to Tizen
 bt-service. Similary this layer will hide the
 internals of HAL (hardware abstraction layer)

3/bt-service links BT OAL library. bt-service main
 triggers BT OAL library loading which further
 dynamically loads BlueZ HAL library.

Dlogutil log extract
===================================================
oal-manager.c: load_hal_lib(134) > Tizen Platform BT chip: Tizen Platform HAL library will be loaded
oal-manager.c: load(177) > Loading Library: /usr/lib/libbluetooth.default.so
oal-manager.c: load(225) > loaded HAL id=bluetooth libpath=/usr/lib/libbluetooth.default.so hmi=0xb6f84d9c handle=0xb5301100
bt-hal-bluetooth.c: open_bluetooth(288) >
oal-manager.c: load_hal_lib(149) > HAL Library loaded successfullly
bt-service-core-adapter.c: __bt_post_oal_init(101) > OAL initialized, Init profiles..

Change-Id: Ibb50c658a4b44c4528757d41fb6198dfa85e6f05
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
35 files changed:
AUTHORS
CMakeLists.txt
bt-oal/CMakeLists.txt [new file with mode: 0755]
bt-oal/bluez_hal/CMakeLists.txt [new file with mode: 0644]
bt-oal/bluez_hal/hal-api.txt [new file with mode: 0644]
bt-oal/bluez_hal/hardware/bluetooth.h [new file with mode: 0755]
bt-oal/bluez_hal/hardware/hardware.c [new file with mode: 0644]
bt-oal/bluez_hal/hardware/hardware.h [new file with mode: 0644]
bt-oal/bluez_hal/inc/bt-hal-log.h [new file with mode: 0644]
bt-oal/bluez_hal/inc/bt-hal-msg.h [new file with mode: 0644]
bt-oal/bluez_hal/inc/bt-hal-utils.h [new file with mode: 0644]
bt-oal/bluez_hal/inc/bt-hal.h [new file with mode: 0644]
bt-oal/bluez_hal/src/bt-hal-bluetooth.c [new file with mode: 0644]
bt-oal/common/oal-common.c [new file with mode: 0755]
bt-oal/common/oal-common.h [new file with mode: 0644]
bt-oal/common/oal-event-dispatcher.c [new file with mode: 0755]
bt-oal/common/oal-utils.c [new file with mode: 0755]
bt-oal/common/oal-utils.h [new file with mode: 0755]
bt-oal/include/oal-adapter-mgr.h [new file with mode: 0755]
bt-oal/include/oal-event.h [new file with mode: 0755]
bt-oal/include/oal-hardware.h [new file with mode: 0755]
bt-oal/include/oal-manager.h [new file with mode: 0755]
bt-oal/oal-adapter-mgr.c [new file with mode: 0755]
bt-oal/oal-hardware.c [new file with mode: 0755]
bt-oal/oal-internal.h [new file with mode: 0755]
bt-oal/oal-manager.c [new file with mode: 0755]
bt-service-adaptation/CMakeLists.txt
bt-service-adaptation/services/adapter/bt-service-core-adapter.c [new file with mode: 0644]
bt-service-adaptation/services/bt-request-handler.c
bt-service-adaptation/services/bt-service-event-receiver.c [new file with mode: 0644]
bt-service-adaptation/services/bt-service-main.c
bt-service-adaptation/services/include/bt-request-handler.h
bt-service-adaptation/services/include/bt-service-core-adapter.h [new file with mode: 0755]
bt-service-adaptation/services/include/bt-service-event-receiver.h [new file with mode: 0644]
packaging/bluetooth-frwk.spec