diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-11-06 10:32:03 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-11-06 12:31:31 +0100 |
commit | 7abcd024882301eb02ff4808edd68e1039d7e589 (patch) | |
tree | 196f4f5ac0614dc07620a04d8940ca06d12566b4 /android/hal-handsfree.c | |
parent | e753d1c5f4bc217d823a6a6e296676a067f7f5f7 (diff) | |
download | bluez-7abcd024882301eb02ff4808edd68e1039d7e589.tar.gz |
android/handsfree: Add support for new API for chld_cmd_cb
CHLD Command notification callback has new parameter bdaddr.
Diffstat (limited to 'android/hal-handsfree.c')
-rw-r--r-- | android/hal-handsfree.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/hal-handsfree.c b/android/hal-handsfree.c index 76a2e0f15..e4ade61f2 100644 --- a/android/hal-handsfree.c +++ b/android/hal-handsfree.c @@ -158,7 +158,11 @@ static void handle_chld(void *buf, uint16_t len, int fd) struct hal_ev_handsfree_chld *ev = buf; if (cbs->chld_cmd_cb) +#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0) + cbs->chld_cmd_cb(ev->chld, (bt_bdaddr_t *) (ev->bdaddr)); +#else cbs->chld_cmd_cb(ev->chld); +#endif } static void handle_cnum(void *buf, uint16_t len, int fd) |