aboutsummaryrefslogtreecommitdiffstats
path: root/src/hs-config.h
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-04-22 17:38:59 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-04-23 19:23:14 +0800
commit95c8f8ac2526acc5f7467704532ea235532b1876 (patch)
treefe26cc3b6953f998935b878b7f9e224412ece96b /src/hs-config.h
parentc393aaa4ae541f1f925981a6f8ae20d46626e8b6 (diff)
add lastmode function
Change-Id: I4b7ca96d1333d170c211b420d79ea9a4d3e1272a
Diffstat (limited to 'src/hs-config.h')
-rw-r--r--src/hs-config.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/hs-config.h b/src/hs-config.h
index d422248..fda49a7 100644
--- a/src/hs-config.h
+++ b/src/hs-config.h
@@ -48,19 +48,20 @@ public:
const struct handshake_info* getHandshakeInfo(void) const {return &m_handshake_info;}
recover_map& getRecoverMap(void) {return m_recover_map;}
static const std::array<std::string, RECOVER_MAX> keys_recover_type; // based on hs-conf.json
+ static const std::string lastmode_json;
+ static const std::string key_appid;
+ static const std::string key_visibility;
+ static std::string root_dir;
private:
int parseConfig(void);
std::vector<struct recover_app_info> getRecoverAppInfo(struct json_object *obj);
const std::string hs_conf_json = "hs-conf.json";
- const std::string lastmode_json = "lastmode.json";
const std::string key_handshake = "handshake";
const std::string key_times = "times";
const std::string key_sleep = "sleep";
const std::string key_recover = "recover";
- const std::string key_appid = "appid";
- const std::string key_visibility = "visibility";
struct json_object *m_hs_conf;
struct json_object *m_lastmode;