static void __bt_handle_client_notification_data(event_gattc_notify_data *event_data);
static void __bt_handle_client_service_changed_ind(event_gattc_service_changed_data *event_data);
static void __bt_handle_client_mtu_exchange_completed(event_gattc_mtu_configured_t *event_data);
-
#endif
+
static int __bt_unregister_gatt_server_instance(int server_instance);
+static void __bt_cleanup_remote_services(struct gatt_server_info_t *conn_info);
/*mtu device list*/
struct gatt_mtu_info_t {
gatt_server_info_list = g_slist_remove(gatt_server_info_list, server_info);
else
BT_INFO("Can not find conn info, already removed!");
+
+ /* Remove all services from info list_gatt_info */
+ __bt_cleanup_remote_services(server_info);
+#else
+ /* Remove all services from info list_gatt_info */
+ __bt_cleanup_remote_services(client_info);
#endif
/* Remove client info from List */