diff options
Diffstat (limited to 'btif/src/bluetooth.c')
-rwxr-xr-x[-rw-r--r--] | btif/src/bluetooth.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/btif/src/bluetooth.c b/btif/src/bluetooth.c index 2480e28..df6c635 100644..100755 --- a/btif/src/bluetooth.c +++ b/btif/src/bluetooth.c @@ -60,6 +60,8 @@ #include <hardware/bluetooth.h> #include <hardware/bt_hf.h> #include <hardware/bt_av.h> +#include <hardware/bt_hh.h> + #define LOG_NDDEBUG 0 #define LOG_TAG "bluedroid" @@ -96,6 +98,10 @@ bt_callbacks_t *bt_hal_cbacks = NULL; extern bthf_interface_t *btif_hf_get_interface(); /* advanced audio profile */ extern btav_interface_t *btif_av_get_interface(); +/* hid host profile */ +extern bthh_interface_t *btif_hh_get_interface(); + + /************************************************************************************ ** Functions @@ -311,7 +317,8 @@ 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(); return NULL; } |