提交 48518029 authored 作者: blu's avatar blu

refactor of delta config

上级 8a031e4e
...@@ -278,6 +278,7 @@ private: ...@@ -278,6 +278,7 @@ private:
// TODO: load delta config // TODO: load delta config
json mods; json mods;
set<int> ipcs; set<int> ipcs;
}
} }
this->bColdStart = false; this->bColdStart = false;
......
...@@ -9,6 +9,13 @@ ...@@ -9,6 +9,13 @@
#include "json.hpp" #include "json.hpp"
#include "spdlog/spdlog.h" #include "spdlog/spdlog.h"
#include "httplib.h" #include "httplib.h"
#include <set>
#include <regex>
#include <iterator>
#include <vector>
#include <string>
#include <fstream>
#include <fmt/format.h>
#define EVCLOUD_REQ_E_CONN -2 #define EVCLOUD_REQ_E_CONN -2
#define EVCLOUD_REQ_E_DATA -3 #define EVCLOUD_REQ_E_DATA -3
...@@ -38,7 +45,7 @@ vector<string> split(const std::string& s, char delimiter); ...@@ -38,7 +45,7 @@ vector<string> split(const std::string& s, char delimiter);
namespace cfgutils { namespace cfgutils {
int getPeerId(string modName, json& modElem, string &peerId, string &peerName); int getPeerId(string modName, json& modElem, string &peerId, string &peerName);
json *findModuleConfig(string peerId, json &data); json *findModuleConfig(string peerId, json &data);
vector<string> getModuleGidsOfIpc(json &config, string sn, int ipcId); json getModulesOperFromConfDiff(json& oldConfig, json &newConfig, json &diff, string sn);
} }
struct StrException : public std::exception struct StrException : public std::exception
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论