diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-11-04 14:24:47 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-11-04 14:53:04 +0100 |
commit | 0a16bd7b78cd6ff02a9186e70b71109a690de4a2 (patch) | |
tree | b8154ce0c6f31e671be992bbc857a6782f2da8b6 /android/hal-bluetooth.c | |
parent | f91de769487803bad1915d178c6e2dec2eb2cf69 (diff) | |
download | bluez-0a16bd7b78cd6ff02a9186e70b71109a690de4a2.tar.gz |
android/hal-bluetooth: Add missing functions
Add missing HAL functions for new Android version
Diffstat (limited to 'android/hal-bluetooth.c')
-rw-r--r-- | android/hal-bluetooth.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/android/hal-bluetooth.c b/android/hal-bluetooth.c index f553eabcd..15991742c 100644 --- a/android/hal-bluetooth.c +++ b/android/hal-bluetooth.c @@ -949,6 +949,35 @@ static int config_hci_snoop_log(uint8_t enable) return BT_STATUS_SUCCESS; } +#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0) +static int get_connection_state(const bt_bdaddr_t *bd_addr) +{ + DBG("bdaddr: %s", bdaddr2str(bd_addr)); + + /* TODO: implement */ + + return BT_STATUS_UNSUPPORTED; +} + +static int set_os_callouts(bt_os_callouts_t *callouts) +{ + DBG("callouts: %p", callouts); + + /* TODO: implement */ + + return BT_STATUS_SUCCESS; +} + +static int read_energy_info(void) +{ + DBG(""); + + /* TODO: implement */ + + return BT_STATUS_UNSUPPORTED; +} +#endif + static const bt_interface_t bluetooth_if = { .size = sizeof(bt_interface_t), .init = init, @@ -975,6 +1004,11 @@ static const bt_interface_t bluetooth_if = { .dut_mode_send = dut_mode_send, .le_test_mode = le_test_mode, .config_hci_snoop_log = config_hci_snoop_log, +#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0) + .get_connection_state = get_connection_state, + .set_os_callouts = set_os_callouts, + .read_energy_info = read_energy_info, +#endif }; static const bt_interface_t *get_bluetooth_interface(void) |