summaryrefslogtreecommitdiff
path: root/src/reference_tree.mli
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-10-24 11:04:39 -0500
committerJohn Estabrook <jestabro@vyos.io>2024-10-24 11:04:39 -0500
commit73e0836d9d64c9dbbf53b82d18ab84e525f59ad6 (patch)
treef858ca6fe042a79fbd809aeafe9e33a7ef946cb9 /src/reference_tree.mli
parent8bb9e607eb1c7b0a701292a36583c91f4a0cdc7b (diff)
downloadvyos1x-config-73e0836d9d64c9dbbf53b82d18ab84e525f59ad6.tar.gz
vyos1x-config-73e0836d9d64c9dbbf53b82d18ab84e525f59ad6.zip
T6718: validate_path returns unit instead of (path, value)
Splitting of path arg into (path, value), as originally returned by validate_path, is now handled by a utility function. validate_path returns unit on success and raises error with output on failure.
Diffstat (limited to 'src/reference_tree.mli')
-rw-r--r--src/reference_tree.mli4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/reference_tree.mli b/src/reference_tree.mli
index 964380e..a8d4efa 100644
--- a/src/reference_tree.mli
+++ b/src/reference_tree.mli
@@ -40,7 +40,9 @@ val load_from_xml : t -> string -> t
val find_xml_child : string -> Xml_light_types.xml -> Xml_light_types.xml option
-val validate_path : string -> t -> string list -> string list * string option
+val validate_path : string -> t -> string list -> unit
+
+val split_path : t -> string list -> string list * string option
val is_multi : t -> string list -> bool