summaryrefslogtreecommitdiff
path: root/src/cstore/cstore.hpp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2011-01-05 16:44:31 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2011-01-05 16:52:12 -0800
commitd4111b01462641baa21978a78390215987a5958a (patch)
treee6a53a4f19f8b197aeb45879d90384b8fd2538d1 /src/cstore/cstore.hpp
parent15022218e4e6983c661ccf1e7beefd598a96e628 (diff)
downloadvyatta-cfg-d4111b01462641baa21978a78390215987a5958a.tar.gz
vyatta-cfg-d4111b01462641baa21978a78390215987a5958a.zip
fix for bug 6641
* change shell API to only use "edit level" when needed. * add factory functions for cstore creation to simplify code. (cherry picked from commit 2208bfef1004295d3227492c6a3e9d7b36903db5)
Diffstat (limited to 'src/cstore/cstore.hpp')
-rw-r--r--src/cstore/cstore.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cstore/cstore.hpp b/src/cstore/cstore.hpp
index fcee26f..e22bb0d 100644
--- a/src/cstore/cstore.hpp
+++ b/src/cstore/cstore.hpp
@@ -53,6 +53,10 @@ public:
Cstore(string& env);
virtual ~Cstore() {};
+ // factory functions
+ static Cstore *createCstore(bool use_edit_level = false);
+ static Cstore *createCstore(const string& session_id, string& env);
+
// types
template<class K, class V>
class MapT : public tr1::unordered_map<K, V> {};