From: Szymon Janc Date: Wed, 23 Oct 2013 11:04:39 +0000 (+0200) Subject: android: Add bt_adapter_get_address function X-Git-Tag: android-x86-4.4-r3~7206 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=97732368fb63b705c241553e2b1e9ea294457338;p=android-x86%2Fexternal-bluetooth-bluez.git android: Add bt_adapter_get_address function It will be used to obtain adapter address. --- diff --git a/android/adapter.c b/android/adapter.c index 059a5be30..f9843d1f9 100644 --- a/android/adapter.c +++ b/android/adapter.c @@ -364,6 +364,11 @@ void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf, ipc_send_error(io, HAL_SERVICE_ID_BLUETOOTH, status); } +const bdaddr_t *bt_adapter_get_address(void) +{ + return &default_adapter->bdaddr; +} + bool bt_adapter_register(GIOChannel *io) { DBG(""); diff --git a/android/adapter.h b/android/adapter.h index 194950bc1..b8d0a5851 100644 --- a/android/adapter.h +++ b/android/adapter.h @@ -38,5 +38,7 @@ bool bt_adapter_init(uint16_t index, struct mgmt *mgmt_if, void bt_adapter_handle_cmd(GIOChannel *io, uint8_t opcode, void *buf, uint16_t len); +const bdaddr_t *bt_adapter_get_address(void); + bool bt_adapter_register(GIOChannel *io); void bt_adapter_unregister(void);