diff options
author | Andre Eisenbach <eisenbach@google.com> | 2017-05-11 01:10:52 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-05-11 01:10:52 +0000 |
commit | fda14c6da2d9d94a024dd0c99be5d9271e068cd2 (patch) | |
tree | dff8314803d16866c96dede94ff723b3489ea653 | |
parent | b28bdeefe25a69d9dd2d9c7adfa11b9aadb7baad (diff) | |
parent | ae85bca70a4d3b457a58d5a7c6b901c37f687506 (diff) | |
download | libhardware-fda14c6da2d9d94a024dd0c99be5d9271e068cd2.tar.gz |
Merge "Bluetooth: HID: Add support for Set Idle and Get Idle commands (1/4)" am: 4ea8183f5f
am: ae85bca70a
Change-Id: I3c600cad5a7f85b3ff8aeb9ee804dad51d41b1c8
-rw-r--r-- | include/hardware/bt_hh.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/hardware/bt_hh.h b/include/hardware/bt_hh.h index dad95868..ece3c114 100644 --- a/include/hardware/bt_hh.h +++ b/include/hardware/bt_hh.h @@ -165,6 +165,12 @@ typedef struct { /** Set the HID proto mode. */ bt_status_t (*set_protocol)(bt_bdaddr_t *bd_addr, bthh_protocol_mode_t protocolMode); + /** Get the HID Idle Time */ + bt_status_t (*get_idle_time)(bt_bdaddr_t *bd_addr); + + /** Set the HID Idle Time */ + bt_status_t (*set_idle_time)(bt_bdaddr_t *bd_addr, uint8_t idleTime); + /** Send a GET_REPORT to HID device. */ bt_status_t (*get_report)(bt_bdaddr_t *bd_addr, bthh_report_type_t reportType, uint8_t reportId, int bufferSize); @@ -174,7 +180,7 @@ typedef struct { /** Send data to HID device. */ bt_status_t (*send_data)(bt_bdaddr_t *bd_addr, char* data); - /** Closes the interface. */ + /** Closes the interface. */ void (*cleanup)( void ); } bthh_interface_t; |