summaryrefslogtreecommitdiff
path: root/src/config_tree.mli
blob: 27042f83fcdf54d5937b8e80120e513d52f7a6f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
type value_behaviour = AddValue | ReplaceValue

exception Duplicate_value
exception Node_has_no_value

type config_node_data = {
  values : string list;
  comment : string;
}

type t = config_node_data Vytree.t

val default_data : config_node_data

val make : string -> t

val set : t -> string list -> string option -> value_behaviour -> t

val delete : t -> string list -> string option -> t

val get_values : t -> string list -> string list

val get_value : t -> string list -> string