summaryrefslogtreecommitdiff
path: root/src/cnode/cnode-algorithm.hpp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2011-05-20 09:42:14 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2011-05-20 09:42:14 -0700
commit6e5d5813b296a08aead2bb92591ddedf88483c1b (patch)
tree941ca297a688f918a325449fa6e12eccbb81f449 /src/cnode/cnode-algorithm.hpp
parentd8527cba4e371552991f435e97aa02e05501f064 (diff)
downloadvyatta-cfg-6e5d5813b296a08aead2bb92591ddedf88483c1b.tar.gz
vyatta-cfg-6e5d5813b296a08aead2bb92591ddedf88483c1b.zip
update comment, fix typo, etc.
Diffstat (limited to 'src/cnode/cnode-algorithm.hpp')
-rw-r--r--src/cnode/cnode-algorithm.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cnode/cnode-algorithm.hpp b/src/cnode/cnode-algorithm.hpp
index 509f875..d17204f 100644
--- a/src/cnode/cnode-algorithm.hpp
+++ b/src/cnode/cnode-algorithm.hpp
@@ -67,6 +67,11 @@ void showConfig(const std::string& cfg1, const std::string& cfg2,
bool hide_secret = false, bool context_diff = false,
bool show_cmds = false, bool ignore_edit = false);
+/* these functions provide the functionality necessary for the "config
+ * file" shell API. basically the API uses the "cparse" interface to
+ * parse a config file into a CfgNode tree structure, and then these
+ * functions can be used to access the nodes in the tree.
+ */
CfgNode *findCfgNode(CfgNode *root, const cstore::Cpath& path,
bool& is_value);
CfgNode *findCfgNode(CfgNode *root, const cstore::Cpath& path);