From 33728840ecec854fbf2f5d100d415cd66e261802 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 10 Feb 2014 16:46:53 -0800 Subject: More local.conf stuff. --- node/NodeConfig.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'node/NodeConfig.hpp') diff --git a/node/NodeConfig.hpp b/node/NodeConfig.hpp index d7a3984a..164bd891 100644 --- a/node/NodeConfig.hpp +++ b/node/NodeConfig.hpp @@ -68,6 +68,24 @@ public: ~NodeConfig(); + /** + * Store something in local configuration cache + * + * By convention, keys starting with _ will not be shown in the command bus + * local config functions. + * + * @param key Configuration key + * @param value Configuration value + */ + void putLocalConfig(const std::string &key,const char *value); + void putLocalConfig(const std::string &key,const std::string &value); + + /** + * @param key Configuration key + * @return Value or empty string if not found + */ + std::string getLocalConfig(const std::string &key) const; + /** * @param nwid Network ID * @return Network or NULL if no network for that ID -- cgit v1.2.3