diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-25 17:20:21 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-08-25 17:20:21 -0700 |
commit | 797d373bd7403455d249ee9ce9725089a93c8754 (patch) | |
tree | 91d08a61f3eb30ee2100af53a3d633fb0017decb /src/cstore/cstore.hpp | |
parent | 28b30ff302ed535b1e81902f06d24c9e9fe61c19 (diff) | |
download | vyatta-cfg-797d373bd7403455d249ee9ce9725089a93c8754.tar.gz vyatta-cfg-797d373bd7403455d249ee9ce9725089a93c8754.zip |
remove sorting from unsorted API calls
Diffstat (limited to 'src/cstore/cstore.hpp')
-rw-r--r-- | src/cstore/cstore.hpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/cstore/cstore.hpp b/src/cstore/cstore.hpp index 5da07fd..e09c015 100644 --- a/src/cstore/cstore.hpp +++ b/src/cstore/cstore.hpp @@ -192,12 +192,13 @@ public: vector<string>& dvals); void cfgPathGetChildNodesStatus(const vector<string>& path_comps, MapT<string, string>& cmap) { - vector<string> dummy; - cfgPathGetChildNodesStatus(path_comps, cmap, dummy); + get_child_nodes_status(path_comps, cmap, NULL); }; void cfgPathGetChildNodesStatus(const vector<string>& path_comps, MapT<string, string>& cmap, - vector<string>& sorted_keys); + vector<string>& sorted_keys) { + get_child_nodes_status(path_comps, cmap, &sorted_keys); + }; /* observers for "effective config". can be used both during a config * session and outside a config session. more detailed information @@ -256,12 +257,13 @@ public: bool include_deactivated = true); void cfgPathGetChildNodesStatusDA(const vector<string>& path_comps, MapT<string, string>& cmap) { - vector<string> dummy; - cfgPathGetChildNodesStatusDA(path_comps, cmap, dummy); + get_child_nodes_status_da(path_comps, cmap, NULL); }; void cfgPathGetChildNodesStatusDA(const vector<string>& path_comps, MapT<string, string>& cmap, - vector<string>& sorted_keys); + vector<string>& sorted_keys) { + get_child_nodes_status_da(path_comps, cmap, &sorted_keys); + }; /* these are internal API functions and operate on current cfg and @@ -423,6 +425,12 @@ private: bool cfg_path_exists(const vector<string>& path_comps, bool active_cfg, bool include_deactivated); bool set_cfg_path(const vector<string>& path_comps, bool output); + void get_child_nodes_status(const vector<string>& path_comps, + Cstore::MapT<string, string>& cmap, + vector<string> *sorted_keys); + void get_child_nodes_status_da(const vector<string>& path_comps, + Cstore::MapT<string, string>& cmap, + vector<string> *sorted_keys); // these operate on current work path (or active with "active_cfg") bool remove_tag(); |