summaryrefslogtreecommitdiffstats
path: root/btif/include/btif_hh.h
diff options
context:
space:
mode:
authorHemant Gupta <hemantg@codeaurora.org>2014-09-18 14:19:57 +0530
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:21:27 -0600
commite4def91925a5fe886419266a5559160b9a9035fb (patch)
tree6f4f3f70e158eb6512758181f62aa4c38218ef48 /btif/include/btif_hh.h
parent94c15ec1dc9776b16c2e9d684610818959fcf541 (diff)
downloadandroid_system_bt-e4def91925a5fe886419266a5559160b9a9035fb.tar.gz
android_system_bt-e4def91925a5fe886419266a5559160b9a9035fb.tar.bz2
android_system_bt-e4def91925a5fe886419266a5559160b9a9035fb.zip
HID: Add support dynamic enabling/disabling hid services
This patch adds support for dynamic enabling and disabling og hd or hh services based on registration of hid device app. When hid device app would be registered, hid host service would be disabled, and after that hid device service would be enabled and vice versa. At BT on time, hid host service would be enabled by default. Change-Id: Iba9db98a7cb598c6abe6af62767d973cc37137da CRs-Fixed: 732779
Diffstat (limited to 'btif/include/btif_hh.h')
-rw-r--r--btif/include/btif_hh.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/btif/include/btif_hh.h b/btif/include/btif_hh.h
index dc34d653c..f2db1afa7 100644
--- a/btif/include/btif_hh.h
+++ b/btif/include/btif_hh.h
@@ -90,6 +90,7 @@ typedef struct
UINT32 device_num;
btif_hh_added_device_t added_devices[BTIF_HH_MAX_ADDED_DEV];
btif_hh_device_t *p_curr_dev;
+ BOOLEAN service_dereg_active;
} btif_hh_cb_t;
@@ -106,6 +107,7 @@ extern bt_status_t btif_hh_virtual_unplug(bt_bdaddr_t *bd_addr);
extern void btif_hh_disconnect(bt_bdaddr_t *bd_addr);
extern void btif_hh_setreport(btif_hh_device_t *p_dev, bthh_report_type_t r_type,
UINT16 size, UINT8* report);
+extern void btif_hh_service_registration(BOOLEAN enable);
BOOLEAN btif_hh_add_added_dev(bt_bdaddr_t bd_addr, tBTA_HH_ATTR_MASK attr_mask);