diff options
author | Mike J. Chen <mjchen@google.com> | 2014-03-07 18:40:57 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-03-07 18:40:57 +0000 |
commit | 57ac9a9e96fb50dba33b05e9ffac1c9f5a1ada8f (patch) | |
tree | 69efa4ae3b604b87202003c2e32fd1bf32c43d12 /include | |
parent | ee4e28c9ebc7f26a1a25d1042d5a941139055447 (diff) | |
parent | 753c442217d79b45145c395ae6c4223fab64791c (diff) | |
download | hardware_libhardware-57ac9a9e96fb50dba33b05e9ffac1c9f5a1ada8f.zip hardware_libhardware-57ac9a9e96fb50dba33b05e9ffac1c9f5a1ada8f.tar.gz hardware_libhardware-57ac9a9e96fb50dba33b05e9ffac1c9f5a1ada8f.tar.bz2 |
Merge "Add handshake_callback to bt_hh" into klp-modular-dev
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware/bt_hh.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/hardware/bt_hh.h b/include/hardware/bt_hh.h index 09f547b..dad9586 100644 --- a/include/hardware/bt_hh.h +++ b/include/hardware/bt_hh.h @@ -99,10 +99,10 @@ typedef void (* bthh_virtual_unplug_callback)(bt_bdaddr_t *bd_addr, bthh_status_ */ typedef void (* bthh_hid_info_callback)(bt_bdaddr_t *bd_addr, bthh_hid_info_t hid_info); -/** Callback for get/set protocal api. +/** Callback for get protocol api. * the protocol mode is one of the value from bthh_protocol_mode_t */ -typedef void (* bthh_protocol_mode_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_status,bthh_protocol_mode_t mode); +typedef void (* bthh_protocol_mode_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_status, bthh_protocol_mode_t mode); /** Callback for get/set_idle_time api. */ @@ -114,6 +114,11 @@ typedef void (* bthh_idle_time_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_ */ typedef void (* bthh_get_report_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_status, uint8_t* rpt_data, int rpt_size); +/** Callback for set_report/set_protocol api and if error + * occurs for get_report/get_protocol api. + */ +typedef void (* bthh_handshake_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_status); + /** BT-HH callback structure. */ typedef struct { @@ -125,6 +130,7 @@ typedef struct { bthh_idle_time_callback idle_time_cb; bthh_get_report_callback get_report_cb; bthh_virtual_unplug_callback virtual_unplug_cb; + bthh_handshake_callback handshake_cb; } bthh_callbacks_t; |