summaryrefslogtreecommitdiff
path: root/controller/DB.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'controller/DB.hpp')
-rw-r--r--controller/DB.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/controller/DB.hpp b/controller/DB.hpp
index 4c7a16b2..abd1483e 100644
--- a/controller/DB.hpp
+++ b/controller/DB.hpp
@@ -58,6 +58,26 @@ public:
int64_t mostRecentDeauthTime;
};
+ /**
+ * Ensure that all network fields are present
+ */
+ static void initNetwork(nlohmann::json &network);
+
+ /**
+ * Ensure that all member fields are present
+ */
+ static void initMember(nlohmann::json &member);
+
+ /**
+ * Remove old and temporary network fields
+ */
+ static void cleanNetwork(nlohmann::json &network);
+
+ /**
+ * Remove old and temporary member fields
+ */
+ static void cleanMember(nlohmann::json &member);
+
DB(EmbeddedNetworkController *const nc,const Identity &myId,const char *path);
virtual ~DB();