From 705762aee4ab2af8f0e93d7cb9d369cfd001b184 Mon Sep 17 00:00:00 2001 From: Lukasz Rymanowski Date: Wed, 30 Apr 2014 11:13:47 +0200 Subject: [PATCH] android/bluetooth: Add function for getting device Android name This will be used by GATT HAL --- android/bluetooth.c | 5 +++++ android/bluetooth.h | 1 + 2 files changed, 6 insertions(+) diff --git a/android/bluetooth.c b/android/bluetooth.c index 76ce790c6..784db64e3 100644 --- a/android/bluetooth.c +++ b/android/bluetooth.c @@ -1198,6 +1198,11 @@ uint8_t bt_get_device_android_type(const bdaddr_t *addr) return get_device_android_type(dev); } +const char *bt_get_adapter_name(void) +{ + return adapter.name; +} + static bool rssi_above_threshold(int old, int new) { /* only 8 dBm or more */ diff --git a/android/bluetooth.h b/android/bluetooth.h index 649c9ba4d..dddbf201f 100644 --- a/android/bluetooth.h +++ b/android/bluetooth.h @@ -48,3 +48,4 @@ bool bt_le_set_advertising(bool advertising, bt_le_set_advertising_done cb, void *user_data); uint8_t bt_get_device_android_type(const bdaddr_t *addr); +const char *bt_get_adapter_name(void); -- 2.47.3