summaryrefslogtreecommitdiffstats
path: root/btif/src/btif_util.c
diff options
context:
space:
mode:
authorPriti Aghera <paghera@broadcom.com>2012-03-22 11:51:08 -0700
committerMatthew Xie <mattx@google.com>2012-07-14 11:19:14 -0700
commitc01f69a35563261eca49bd2083afd7064790940d (patch)
treeab42ef0ba2a5f9d86b6b972aa3f9143148e72b30 /btif/src/btif_util.c
parent146738bdcf0accdbd5d865440f86152d2430812d (diff)
downloadexternal_bluetooth_bluedroid-c01f69a35563261eca49bd2083afd7064790940d.zip
external_bluetooth_bluedroid-c01f69a35563261eca49bd2083afd7064790940d.tar.gz
external_bluetooth_bluedroid-c01f69a35563261eca49bd2083afd7064790940d.tar.bz2
HID-Host:Fixed white space issue and power management issue
Included more code to support mouse connectiona and reconnection Signed-off-by: Priti Aghera <paghera@broadcom.com> Change-Id: I1e20997e85eda5919f20a069131e580bcbb0ca63
Diffstat (limited to 'btif/src/btif_util.c')
-rwxr-xr-x[-rw-r--r--]btif/src/btif_util.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/btif/src/btif_util.c b/btif/src/btif_util.c
index a1a5d97..f5c06f8 100644..100755
--- a/btif/src/btif_util.c
+++ b/btif/src/btif_util.c
@@ -73,6 +73,8 @@
#include "btif_dm.h"
#include "btif_util.h"
#include "bta_ag_api.h"
+#include "bta_hh_api.h"
+
/************************************************************************************
@@ -269,6 +271,28 @@ const char* dump_hf_event(UINT16 event)
}
}
+const char* dump_hh_event(UINT16 event)
+{
+ switch(event)
+ {
+ CASE_RETURN_STR(BTA_HH_ENABLE_EVT)
+ CASE_RETURN_STR(BTA_HH_DISABLE_EVT)
+ CASE_RETURN_STR(BTA_HH_OPEN_EVT)
+ CASE_RETURN_STR(BTA_HH_CLOSE_EVT)
+ CASE_RETURN_STR(BTA_HH_GET_DSCP_EVT)
+ CASE_RETURN_STR(BTA_HH_GET_PROTO_EVT)
+ CASE_RETURN_STR(BTA_HH_GET_RPT_EVT)
+ CASE_RETURN_STR(BTA_HH_SET_PROTO_EVT)
+ CASE_RETURN_STR(BTA_HH_SET_RPT_EVT)
+ CASE_RETURN_STR(BTA_HH_VC_UNPLUG_EVT)
+ CASE_RETURN_STR(BTA_HH_ADD_DEV_EVT)
+ CASE_RETURN_STR(BTA_HH_RMV_DEV_EVT)
+ CASE_RETURN_STR(BTA_HH_API_ERR_EVT)
+ default:
+ return "UNKNOWN MSG ID";
+ }
+}
+
const char* dump_hf_conn_state(UINT16 event)
{