diff options
author | Zhihai Xu <zhihaixu@google.com> | 2014-03-31 21:21:16 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-03-31 21:21:17 +0000 |
commit | 925855b5de013cb709fb2d88d840f9c6e71cdcf6 (patch) | |
tree | f264c59f9650ad820d1c694dfc2f3536959ad842 | |
parent | 3bc29d3e0a08bee19a43a61ce77b1b86a1cda436 (diff) | |
parent | 8a4b61a909191a81308fe62cf69d2b9b66fd9bf8 (diff) | |
download | hardware_libhardware-925855b5de013cb709fb2d88d840f9c6e71cdcf6.zip hardware_libhardware-925855b5de013cb709fb2d88d840f9c6e71cdcf6.tar.gz hardware_libhardware-925855b5de013cb709fb2d88d840f9c6e71cdcf6.tar.bz2 |
Merge "LE: Add API to configure MTU for a given connection (1/4)" into klp-modular-dev
-rw-r--r-- | include/hardware/bt_gatt_client.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hardware/bt_gatt_client.h b/include/hardware/bt_gatt_client.h index cf4fabe..11b146d 100644 --- a/include/hardware/bt_gatt_client.h +++ b/include/hardware/bt_gatt_client.h @@ -156,6 +156,9 @@ typedef void (*read_remote_rssi_callback)(int client_if, bt_bdaddr_t* bda, */ typedef void (*listen_callback)(int status, int server_if); +/** Callback invoked when the MTU for a given connection changes */ +typedef void (*configure_mtu_callback)(int conn_id, int status, int mtu); + typedef struct { register_client_callback register_client_cb; scan_result_callback scan_result_cb; @@ -175,6 +178,7 @@ typedef struct { execute_write_callback execute_write_cb; read_remote_rssi_callback read_remote_rssi_cb; listen_callback listen_cb; + configure_mtu_callback configure_mtu_cb; } btgatt_client_callbacks_t; /** Represents the standard BT-GATT client interface. */ @@ -282,6 +286,9 @@ typedef struct { uint16_t service_data_len, char* service_data, uint16_t service_uuid_len, char* service_uuid); + /** Configure the MTU for a given connection */ + bt_status_t (*configure_mtu)(int conn_id, int mtu); + /** Test mode interface */ bt_status_t (*test_command)( int command, btgatt_test_params_t* params); } btgatt_client_interface_t; |