diff options
author | Daniil Baturin <daniil@baturin.org> | 2018-02-16 21:11:21 +0700 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2018-02-16 21:11:21 +0700 |
commit | e4cac118645ffb290ec78e4cde6c9757219d3a10 (patch) | |
tree | 8a29e91560649ae24981a346828206c65c5d3c67 /src/session.mli | |
parent | 56130bfe30781c210c7459e5df9afa7d894aeec7 (diff) | |
download | vyconf-e4cac118645ffb290ec78e4cde6c9757219d3a10.tar.gz vyconf-e4cac118645ffb290ec78e4cde6c9757219d3a10.zip |
Implement config reading functions and a minimal command line client for using them.
Yes, I hate oversized commits too, but this is hard to avoid sometimes.
Adjustments to the Session functions logic required to make it work:
Do not try to validate the path. The validation function is geared towards
validating _set_ paths, so when path lacks a value, it doesn't work right.
We assume that the path has been through set at some point, so if a path
currently exists in the config tree, it is also a valid path that can be used for
Reference_tree.is_leaf etc.
Diffstat (limited to 'src/session.mli')
-rw-r--r-- | src/session.mli | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session.mli b/src/session.mli index 0ec844b..299f2ca 100644 --- a/src/session.mli +++ b/src/session.mli @@ -35,3 +35,5 @@ val exists : world -> session_data -> string list -> bool val list_children : world -> session_data -> string list -> string list val string_of_op : cfg_op -> string + +val show_config : world -> session_data -> string list -> Vyconf_types.request_config_format -> string |