summaryrefslogtreecommitdiff
path: root/src/config_diff.mli
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-02-25 11:57:22 -0600
committerJohn Estabrook <jestabro@vyos.io>2022-02-25 12:48:17 -0600
commit275c95be26f86a06cbec3123bc90ffbcd76f78af (patch)
tree9d70ee7adfba57ce0d253e1a9c6a6a0092ff6331 /src/config_diff.mli
parent7e4d9ff86ca96a990f52e05310a0486cb668cfb8 (diff)
downloadvyos1x-config-275c95be26f86a06cbec3123bc90ffbcd76f78af.tar.gz
vyos1x-config-275c95be26f86a06cbec3123bc90ffbcd76f78af.zip
T4235: change type/variable names for clarity; add is_empty for list
Diffstat (limited to 'src/config_diff.mli')
-rw-r--r--src/config_diff.mli8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config_diff.mli b/src/config_diff.mli
index 5aa6d30..d68976b 100644
--- a/src/config_diff.mli
+++ b/src/config_diff.mli
@@ -1,6 +1,6 @@
-type change = Unchanged | Added | Deleted | Updated of string list
+type change = Unchanged | Added | Subtracted | Updated of string list
-type diff_func = ?with_children:bool -> string list -> change -> unit
+type diff_func = ?recurse:bool -> string list -> change -> unit
type diff_trees = {
left: Config_tree.t;
@@ -14,8 +14,8 @@ exception Incommensurable
exception Empty_comparison
val make_diff_trees : Config_tree.t -> Config_tree.t -> diff_trees
-val clone : ?with_children:bool -> ?set_values:string list -> Config_tree.t -> Config_tree.t -> string list -> Config_tree.t
-val decorate_trees : diff_trees -> ?with_children:bool -> string list -> change -> unit
+val clone : ?recurse:bool -> ?set_values:string list -> Config_tree.t -> Config_tree.t -> string list -> Config_tree.t
+val decorate_trees : diff_trees -> ?recurse:bool -> string list -> change -> unit
val compare : string list -> Config_tree.t -> Config_tree.t -> diff_trees
val diff_tree : string list -> Config_tree.t -> Config_tree.t -> Config_tree.t