summaryrefslogtreecommitdiff
path: root/src/cnode/cnode-algorithm.hpp
diff options
context:
space:
mode:
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);