summaryrefslogtreecommitdiff
path: root/android/hal-handsfree.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-11-06 10:32:00 +0200
committerSzymon Janc <szymon.janc@tieto.com>2014-11-06 12:31:31 +0100
commitea3e91cf13da8f5e716534aa01c88b47e9443839 (patch)
tree29da67af91ba224ec9b087274f684a3b1528cc47 /android/hal-handsfree.c
parent2ce0bb3c23e65e8a2dd910b517a94dc0c7da00c5 (diff)
downloadbluez-ea3e91cf13da8f5e716534aa01c88b47e9443839.tar.gz
android/handsfree: Add support for new API for dial_call_cmd_cb
Dial Call Command notification callback has new parameter bdaddr.
Diffstat (limited to 'android/hal-handsfree.c')
-rw-r--r--android/hal-handsfree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/hal-handsfree.c b/android/hal-handsfree.c
index bb64da01d..3a5eec695 100644
--- a/android/hal-handsfree.c
+++ b/android/hal-handsfree.c
@@ -122,7 +122,11 @@ static void handle_dial(void *buf, uint16_t len, int fd)
if (ev->number_len)
number = (char *) ev->number;
+#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
+ cbs->dial_call_cmd_cb(number, (bt_bdaddr_t *) (ev->bdaddr));
+#else
cbs->dial_call_cmd_cb(number);
+#endif
}
static void handle_dtmf(void *buf, uint16_t len, int fd)