summaryrefslogtreecommitdiff
path: root/include/bluetooth_type_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/bluetooth_type_internal.h')
-rw-r--r--include/bluetooth_type_internal.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/bluetooth_type_internal.h b/include/bluetooth_type_internal.h
index f2fe5dc..8b8e8f6 100644
--- a/include/bluetooth_type_internal.h
+++ b/include/bluetooth_type_internal.h
@@ -751,6 +751,36 @@ typedef struct {
typedef void (*bt_device_att_mtu_changed_cb)(int result, bt_device_att_mtu_info_s *mtu_info, void *user_data);
/**
+ * @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE
+ * @brief Attribute protocol MTU change information structure.
+ * @since_tizen 5.5
+ *
+ * @see bt_gatt_server_att_mtu_changed_cb()
+ */
+typedef struct {
+ char *remote_address; /**< The address of remote device */
+ unsigned int mtu; /**< MTU value */
+ unsigned int status; /**< Request status*/
+} bt_gatt_server_att_mtu_info_s;
+
+/**
+ * @ingroup CAPI_NETWORK_BLUETOOTH_GATT_SERVER_MODULE
+ * @brief This callback will be invoked if remote client has requested to change the MTU.
+ * @since_tizen 5.5
+ *
+ * @remarks The @a mtu_info must not be freed by application.
+ * @a mtu_info can be used only inside the callback.
+ * If it's needed outside, make a copy.
+ *
+ * @param[in] server The handle of a GATT server
+ * @param[in] mtu_info The MTU information
+ * @param[in] user_data The user data passed from the callback registration function
+ */
+typedef void (*bt_gatt_server_att_mtu_changed_cb)(bt_gatt_server_h server,
+ const bt_gatt_server_att_mtu_info_s *mtu_info,
+ void *user_data);
+
+/**
* @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief The handle of a Proximity Monitor client handle which is associated with a remote device.
* @since_tizen 4.0