Merge "[Bluetooth] Clear all GATT data after unregistering all services" into tizen
authorPiotr Kosko <p.kosko@samsung.com>
Mon, 21 Sep 2020 08:14:55 +0000 (08:14 +0000)
committerGerrit Code Review <gerrit@review>
Mon, 21 Sep 2020 08:14:55 +0000 (08:14 +0000)
1  2 
src/bluetooth/bluetooth_gatt_server.cc
src/bluetooth/bluetooth_gatt_server_service.h

@@@ -47,11 -47,8 +47,12 @@@ class BluetoothGATTServerService 
    PlatformResult SetWriteValueRequestCallback(const picojson::value& args);
    PlatformResult SendResponse(const picojson::value& args);
    PlatformResult NotifyAboutValueChange(const picojson::value& args);
+   void ClearGATTData();
  
 +  static bool DestroyService(int total, int index, bt_gatt_h handle, void* user_data);
 +  static bool DestroyCharacteristic(int total, int index, bt_gatt_h handle, void* user_data);
 +  static bool DestroyDescriptor(int total, int index, bt_gatt_h handle, void* user_data);
 +
   private:
    BluetoothInstance& instance_;
    std::map<int, bt_gatt_h> gatt_objects_;