Add Augeas.source
[ocaml-augeas.git] / augeas.mli
index ef43e43..dfada4a 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:
@@ -118,3 +123,12 @@ val load : t -> unit
 
 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]. *)
+
+val source : t -> path -> path option
+  (** [source t path] returns the path to the node representing the
+      file to which [path] belongs, or [None] if [path] does not
+      represent any file. *)