Add Augeas.transform
[ocaml-augeas.git] / augeas.mli
index a896270..327dc02 100644 (file)
@@ -47,6 +47,11 @@ type error_code =
   | AugErrUnknown of int
   (** Possible error codes. *)
 
+type transform_mode =
+  | Include
+  | Exclude
+  (** The operation mode for the {!transform} function. *)
+
 exception Error of error_code * string * string * string
   (** This exception is thrown when the underlying Augeas library
       returns an error.  The tuple represents:
@@ -115,3 +120,10 @@ val save : t -> unit
 
 val load : t -> unit
   (** [load t] loads files into the tree. *)
+
+val set : t -> path -> value option -> unit
+  (** [set t path] sets [value] as new value at [path]. *)
+
+val transform : t -> string -> string -> transform_mode -> unit
+  (** [transform t lens file mode] adds or removes (depending on
+      [mode]) the transformation of the specified [lens] for [file]. *)