diff options
author | Jakub Pawlowski <jpawlowski@google.com> | 2017-04-14 07:27:20 -0700 |
---|---|---|
committer | Jakub Pawlowski <jpawlowski@google.com> | 2017-04-27 12:55:34 -0700 |
commit | 1fb9687349e300f7c390e81d72c9363d712fb345 (patch) | |
tree | 982700fe9dbc55a827e1f8d8035bb22e7d0f0c1d | |
parent | 3941fc8a67d6c8688fc46e343bdfb3a0092bdc7e (diff) | |
download | libhardware-1fb9687349e300f7c390e81d72c9363d712fb345.tar.gz |
Read by UUID for PTS tests (3/5)
Add a hidden api for reading characteristic by UUID for PTS.
Bug: 35150313
Test: sl4a GattReadTest.byUuid
Change-Id: Ia429895abf38b504975af5d53ec4c5adf5a01a9d
(cherry picked from commit f6833f45c39e1ffd41b2183bfcfcceaf1e6bacdc)
-rw-r--r-- | include/hardware/bt_gatt_client.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/hardware/bt_gatt_client.h b/include/hardware/bt_gatt_client.h index ec8dd161..33a6825f 100644 --- a/include/hardware/bt_gatt_client.h +++ b/include/hardware/bt_gatt_client.h @@ -224,8 +224,13 @@ typedef struct { bt_status_t (*search_service)(int conn_id, bt_uuid_t *filter_uuid ); /** Read a characteristic on a remote device */ - bt_status_t (*read_characteristic)( int conn_id, uint16_t handle, - int auth_req ); + bt_status_t (*read_characteristic)(int conn_id, uint16_t handle, + int auth_req); + + /** Read a characteristic on a remote device */ + bt_status_t (*read_using_characteristic_uuid)( + int conn_id, bt_uuid_t *uuid, uint16_t s_handle, + uint16_t e_handle, int auth_req); /** Write a remote characteristic */ bt_status_t (*write_characteristic)(int conn_id, uint16_t handle, |