Merge "Expose connection update callback (2/3)" am: b1def383da am: 6cf186eb6b
am: 85ccdb8629

Change-Id: I24b390caa55284ab96601fbe7cd8418943036bb1
diff --git a/include/hardware/bt_gatt_client.h b/include/hardware/bt_gatt_client.h
index 3df0a96..d54256d 100644
--- a/include/hardware/bt_gatt_client.h
+++ b/include/hardware/bt_gatt_client.h
@@ -170,6 +170,11 @@
 typedef void (*phy_updated_callback)(int conn_id, uint8_t tx_phy,
                                      uint8_t rx_phy, uint8_t status);
 
+/** Callback invoked when the connection parameters for a given connection changes */
+typedef void (*conn_updated_callback)(int conn_id, uint16_t interval,
+                                      uint16_t latency, uint16_t timeout,
+                                      uint8_t status);
+
 typedef struct {
     register_client_callback            register_client_cb;
     connect_callback                    open_cb;
@@ -189,6 +194,7 @@
     services_removed_callback           services_removed_cb;
     services_added_callback             services_added_cb;
     phy_updated_callback                phy_updated_cb;
+    conn_updated_callback               conn_updated_cb;
 } btgatt_client_callbacks_t;
 
 /** Represents the standard BT-GATT client interface. */
diff --git a/include/hardware/bt_gatt_server.h b/include/hardware/bt_gatt_server.h
index d2e4ccd..36259a1 100644
--- a/include/hardware/bt_gatt_server.h
+++ b/include/hardware/bt_gatt_server.h
@@ -109,6 +109,10 @@
 typedef void (*phy_updated_callback)(int conn_id, uint8_t tx_phy,
                                      uint8_t rx_phy, uint8_t status);
 
+/** Callback invoked when the connection parameters for a given connection changes */
+typedef void (*conn_updated_callback)(int conn_id, uint16_t interval,
+                                      uint16_t latency, uint16_t timeout,
+                                      uint8_t status);
 typedef struct {
     register_server_callback        register_server_cb;
     connection_callback             connection_cb;
@@ -125,6 +129,7 @@
     congestion_callback             congestion_cb;
     mtu_changed_callback            mtu_changed_cb;
     phy_updated_callback            phy_updated_cb;
+    conn_updated_callback           conn_updated_cb;
 } btgatt_server_callbacks_t;
 
 /** Represents the standard BT-GATT server interface. */