Implement get_att_mtu logic in hal gatt client
[platform/core/connectivity/bluetooth-frwk.git] / bt-oal / hardware / bt_gatt_client.h
index ed445c6..e1ba5b9 100644 (file)
@@ -316,12 +316,12 @@ typedef struct {
         * Register to receive notifications or indications for a given
         * characteristic
         */
-       bt_status_t (*register_for_notification)(int client_if,
+       bt_status_t (*register_for_notification)(int conn_id,
                        const bt_bdaddr_t *bd_addr, btgatt_srvc_id_t *srvc_id,
                        btgatt_gatt_id_t *char_id);
 
        /** Deregister a previous request for notifications/indications */
-       bt_status_t (*deregister_for_notification)(int client_if,
+       bt_status_t (*deregister_for_notification)(int conn_id,
                        const bt_bdaddr_t *bd_addr, btgatt_srvc_id_t *srvc_id,
                        btgatt_gatt_id_t *char_id);
 
@@ -340,6 +340,9 @@ typedef struct {
        /** Test mode interface */
        bt_status_t (*test_command)(int command, btgatt_test_params_t* params);
 
+       /* Get current att mtu size of active connection */
+       bt_status_t (*get_att_mtu)(int conn_id, int *mtu_size);
+
        /** MTU Exchange request from client */
        bt_status_t (*configure_mtu)(int conn_id, int mtu);
 
@@ -387,6 +390,15 @@ typedef struct {
 
        /** Adds a connection info in list */
        bt_status_t (*add_connection_info)(const bt_bdaddr_t *bd_addr, int conn_id, int server_inst_id);
+
+       /** Get data batching available packets */
+       bt_status_t (*get_data_batching_available_packets)(unsigned int *available_packets);
+
+       /** Enable data batching */
+       bt_status_t (*enable_data_batching)(const bt_bdaddr_t *bd_addr, int packet_threshold, int timeout);
+
+       /** Disable data batching */
+       bt_status_t (*disable_data_batching)(const bt_bdaddr_t *bd_addr);
 } btgatt_client_interface_t;
 
 __END_DECLS