Mesh: Handle Multi-application init & deinit logic
[platform/core/connectivity/bluetooth-frwk.git] / bt-service / services / include / bt-service-mesh-network.h
index 4300455..795700d 100644 (file)
@@ -27,6 +27,8 @@
 #include "bluetooth-api.h"
 #include "bluetooth-mesh-api.h"
 
+#include "bt-service-mesh-cdb.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -40,6 +42,8 @@ int _bt_mesh_network_destroy(const char *app_cred,
 
 int _bt_mesh_network_remove_net_configuration(bluetooth_mesh_network_t *net);
 
+void _bt_mesh_network_unload_net_configuration(_bt_mesh_cdb_t *cdb_cfg);
+
 int _bt_mesh_network_remove_node_configuration(bluetooth_mesh_node_info_t *node);
 
 int _bt_mesh_network_create_cdb(int result,
@@ -50,6 +54,9 @@ int _bt_mesh_network_create_cdb(int result,
 int _bt_mesh_network_load(const char *app_cred,
                const char *sender, const char *token);
 
+int _bt_mesh_network_unload(const char *app_cred,
+               const char *sender, bluetooth_mesh_network_t *network);
+
 int _bt_mesh_network_load_cdb(int result, const char *sender,
                const char *app_creds, uint8_t uuid[16],
                        uint8_t token[8], char **network);