summaryrefslogtreecommitdiff
path: root/android/hal.h
diff options
context:
space:
mode:
authorLukasz Rymanowski <lukasz.rymanowski@tieto.com>2014-09-15 13:51:17 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-09-18 16:36:04 +0200
commit8809f1970e1ddfcd777b00a616a802c0fbc7a222 (patch)
tree9a3181235eae14fd054c0eb1e5ac3cd0760f20f6 /android/hal.h
parent4056566559c1f5ace7a2369bc1322965898bc568 (diff)
downloadbluez-8809f1970e1ddfcd777b00a616a802c0fbc7a222.tar.gz
android/handsfree-client: Add handsfree-client HAL skeleton
This patch also introduce BLUEZ_EXTENSIONS flag which is used for not Android AOSP features like HF Client in this case. Idea is that BfA for PC is always build with this flag and it is added to Makefile.am For Android there is need to set this flag as described in README
Diffstat (limited to 'android/hal.h')
-rw-r--r--android/hal.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/android/hal.h b/android/hal.h
index 6998e9a2e..c34022d80 100644
--- a/android/hal.h
+++ b/android/hal.h
@@ -27,6 +27,10 @@
#include <hardware/bt_gatt_server.h>
#include <hardware/bt_hl.h>
+#ifdef BLUEZ_EXTENSIONS
+#include <hardware/bt_hf_client.h>
+#endif
+
btsock_interface_t *bt_get_socket_interface(void);
bthh_interface_t *bt_get_hidhost_interface(void);
btpan_interface_t *bt_get_pan_interface(void);
@@ -36,5 +40,9 @@ bthf_interface_t *bt_get_handsfree_interface(void);
btgatt_interface_t *bt_get_gatt_interface(void);
bthl_interface_t *bt_get_health_interface(void);
+#ifdef BLUEZ_EXTENSIONS
+bthf_client_interface_t *bt_get_hf_client_interface(void);
+#endif
+
void bt_thread_associate(void);
void bt_thread_disassociate(void);