summaryrefslogtreecommitdiff
path: root/controller/DB.hpp
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2018-01-10 12:43:18 -0800
committerJoseph Henry <josephjah@gmail.com>2018-01-10 12:43:18 -0800
commit6e1823ac8156b39f68b0cbba1d350f4bdc149231 (patch)
tree38a0f46da441957299ccb10cdf9e456be955de22 /controller/DB.hpp
parent640cc22749276e7c7f6e7cfa4eee8c0590064ac0 (diff)
parent9bab49d2f91fbb1d19c75e868bc04959ef9f135e (diff)
downloadinfinitytier-6e1823ac8156b39f68b0cbba1d350f4bdc149231.tar.gz
infinitytier-6e1823ac8156b39f68b0cbba1d350f4bdc149231.zip
Merge branch 'dev' of http://git.int.zerotier.com/ZeroTier/ZeroTierOne into dev
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();