summaryrefslogtreecommitdiff
path: root/android/client
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-11-12 17:14:27 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-11-13 18:06:18 +0100
commit94339ef471ca8981d1fa6231ad9c7415aec2e02a (patch)
tree5fe11134b7e97d65bcaa2ae8664e3791614196e1 /android/client
parentca3a946ef0cfebc00a7a08672b1055375529e114 (diff)
downloadbluez-94339ef471ca8981d1fa6231ad9c7415aec2e02a.tar.gz
android/client: Add handsfree wbs_cb callback
Diffstat (limited to 'android/client')
-rw-r--r--android/client/if-hf.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/android/client/if-hf.c b/android/client/if-hf.c
index 269e0295b..b0dd13a2d 100644
--- a/android/client/if-hf.c
+++ b/android/client/if-hf.c
@@ -355,6 +355,14 @@ static void key_pressed_cmd_cb(void)
}
#endif
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
+static void wbs_cb(bthf_wbs_config_t wbs, bt_bdaddr_t *bd_addr)
+{
+ haltest_info("%s: bd_addr=%s\n", __func__,
+ bt_bdaddr_t2str(bd_addr, last_addr));
+}
+#endif
+
static bthf_callbacks_t hf_cbacks = {
.size = sizeof(hf_cbacks),
.connection_state_cb = connection_state_cb,
@@ -366,6 +374,9 @@ static bthf_callbacks_t hf_cbacks = {
.dial_call_cmd_cb = dial_call_cmd_cb,
.dtmf_cmd_cb = dtmf_cmd_cb,
.nrec_cmd_cb = nrec_cmd_cb,
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
+ .wbs_cb = wbs_cb,
+#endif
.chld_cmd_cb = chld_cmd_cb,
.cnum_cmd_cb = cnum_cmd_cb,
.cind_cmd_cb = cind_cmd_cb,