Bluetooth: Add support for set_priority for HID Host
This patch adds support for set_priority for HID Host. With this new
method, btif layer would be informed of remote HID Device priority
and would help in early rejection of HID incoming connection in case
User on DUT has unchecked Input device from Application.
Change-Id: I0c1ac7c8ad010b8d7e8aa5653e69568a45f4af92
CRs-Fixed: 532234
diff --git a/include/hardware/bt_hh.h b/include/hardware/bt_hh.h
index ece3c11..feaf845 100644
--- a/include/hardware/bt_hh.h
+++ b/include/hardware/bt_hh.h
@@ -80,6 +80,7 @@
int product_id;
int version;
uint8_t ctry_code;
+ int priority;
int dl_len;
uint8_t dsc_list[BTHH_MAX_DSC_LEN];
} bthh_hid_info_t;
@@ -180,6 +181,9 @@
/** Send data to HID device. */
bt_status_t (*send_data)(bt_bdaddr_t *bd_addr, char* data);
+ /** Set the Device Priority */
+ bt_status_t (*set_priority)(bt_bdaddr_t *bd_addr, int priority);
+
/** Closes the interface. */
void (*cleanup)( void );