summaryrefslogtreecommitdiffstats
path: root/btif/src/bluetooth.c
diff options
context:
space:
mode:
Diffstat (limited to 'btif/src/bluetooth.c')
-rwxr-xr-xbtif/src/bluetooth.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/btif/src/bluetooth.c b/btif/src/bluetooth.c
index df6c635..358b8c4 100755
--- a/btif/src/bluetooth.c
+++ b/btif/src/bluetooth.c
@@ -61,7 +61,7 @@
#include <hardware/bt_hf.h>
#include <hardware/bt_av.h>
#include <hardware/bt_hh.h>
-
+#include <hardware/bt_hl.h>
#define LOG_NDDEBUG 0
#define LOG_TAG "bluedroid"
@@ -100,8 +100,8 @@ extern bthf_interface_t *btif_hf_get_interface();
extern btav_interface_t *btif_av_get_interface();
/* hid host profile */
extern bthh_interface_t *btif_hh_get_interface();
-
-
+/* health device profile */
+extern bthl_interface_t *btif_hl_get_interface();
/************************************************************************************
** Functions
@@ -317,8 +317,12 @@ static const void* get_profile_interface (const char *profile_id)
if (is_profile(profile_id, BT_PROFILE_ADVANCED_AUDIO_ID))
return btif_av_get_interface();
+
if (is_profile(profile_id, BT_PROFILE_HIDHOST_ID))
return btif_hh_get_interface();
+
+ if (is_profile(profile_id, BT_PROFILE_HEALTH_ID))
+ return btif_hl_get_interface();
return NULL;
}