CAMLreturn (Val_unit);
}
+
+/* val load : t -> unit */
+CAMLprim value
+ocaml_augeas_load (value tv)
+{
+ CAMLparam1 (tv);
+ augeas_t t = Augeas_t_val (tv);
+
+ if (aug_load (t) == -1)
+ raise_error ("Augeas.load");
+
+ CAMLreturn (Val_unit);
+}
= "ocaml_augeas_count_matches"
external save : t -> unit
= "ocaml_augeas_save"
+external load : t -> unit
+ = "ocaml_augeas_load"
let () =
Callback.register_exception "Augeas.Error" (Error "")
val save : t -> unit
(** [save t] saves all pending changes to disk. *)
+
+val load : t -> unit
+ (** [load t] loads files into the tree. *)