diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-11-06 10:32:02 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-11-06 12:31:31 +0100 |
commit | e753d1c5f4bc217d823a6a6e296676a067f7f5f7 (patch) | |
tree | 0a300ee7ef531e504ce5bcd143820c023454e758 /android/hal-handsfree.c | |
parent | 8343735754c098f04c0d81ff4254013f5521956f (diff) | |
download | bluez-e753d1c5f4bc217d823a6a6e296676a067f7f5f7.tar.gz |
android/handsfree: Add support for new API for nrec_cmd_cb
NREC 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 21d444442..76a2e0f15 100644 --- a/android/hal-handsfree.c +++ b/android/hal-handsfree.c @@ -146,7 +146,11 @@ static void handle_nrec(void *buf, uint16_t len, int fd) struct hal_ev_handsfree_nrec *ev = buf; if (cbs->nrec_cmd_cb) +#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0) + cbs->nrec_cmd_cb(ev->nrec, (bt_bdaddr_t *) (ev->bdaddr)); +#else cbs->nrec_cmd_cb(ev->nrec); +#endif } static void handle_chld(void *buf, uint16_t len, int fd) |