Implement AugNoStdinc, AugSaveNoop and AugNoLoad flags.
[ocaml-augeas.git] / augeas.mli
index 1123f05..bada127 100644 (file)
@@ -29,6 +29,9 @@ type flag =
   | AugSaveBackup                      (** Rename original with .augsave *)
   | AugSaveNewFile                     (** Save changes to .augnew *)
   | AugTypeCheck                       (** Type-check lenses *)
+  | AugNoStdinc
+  | AugSaveNoop
+  | AugNoLoad
   (** Flags passed to the {!create} function. *)
 
 type path = string
@@ -81,5 +84,9 @@ val matches : t -> path -> path list
   (** [matches t path] returns a list of path expressions
       of all nodes matching [path]. *)
 
+val count_matches : t -> path -> int
+  (** [count_matches t path] counts the number of nodes matching
+      [path] but does not return them (see {!matches}). *)
+
 val save : t -> unit
   (** [save t] saves all pending changes to disk. *)