diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-11-07 12:42:01 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-11-07 12:51:27 +0100 |
commit | e6fb089c502c76a1185970107ab1e15d5c1a152e (patch) | |
tree | ba7c2ea99b1044ac9492abd4f3e8acb07520c139 /android/hal.h | |
parent | 4c150a0a5b35fdf273ecda674c19c5a3ec1dfbe8 (diff) | |
download | bluez-e6fb089c502c76a1185970107ab1e15d5c1a152e.tar.gz |
android: Remove temporary BLUEZ_EXTENSION flag
BLUEZ_EXTENSION is replaced by ANDROID_VERSION >= PLATFORM_VER(5, 0, 0)
check.
Diffstat (limited to 'android/hal.h')
-rw-r--r-- | android/hal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/android/hal.h b/android/hal.h index 9b4195205..76555a0fb 100644 --- a/android/hal.h +++ b/android/hal.h @@ -27,7 +27,9 @@ #include <hardware/bt_gatt_server.h> #include <hardware/bt_hl.h> -#ifdef BLUEZ_EXTENSIONS +#define PLATFORM_VER(a, b, c) ((a << 16) | ( b << 8) | (c)) + +#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0) #include <hardware/bt_hf_client.h> #include <hardware/bt_mce.h> #endif @@ -41,7 +43,7 @@ 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 +#if ANDROID_VERSION >= PLATFORM_VER(5, 0, 0) bthf_client_interface_t *bt_get_hf_client_interface(void); btmce_interface_t *bt_get_map_client_interface(void); #endif |