X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=augeas.mli;h=80a94f228deffdf9da4e825f26cf6f6db2cdc617;hb=ec850ec2088f9145cea63e7d608f3c8d5074e4ef;hp=327dc022830681eb5227e989e3a3a012dfbb5d19;hpb=2ccf1e5b2a7e4ba23fc2f81e1bcdcab56e8fb9f6;p=ocaml-augeas.git diff --git a/augeas.mli b/augeas.mli index 327dc02..80a94f2 100644 --- a/augeas.mli +++ b/augeas.mli @@ -28,6 +28,10 @@ type flag = | AugNoStdinc | AugSaveNoop | AugNoLoad + | AugNoModlAutoload + | AugEnableSpan + | AugNoErrClose + | AugTraceModuleLoading (** Flags passed to the {!create} function. *) type error_code = @@ -90,6 +94,11 @@ val close : t -> unit Do not use the handle after closing it. *) +val defvar : t -> string -> string option -> int option + (** [defvar t name expr] defines [name] whose value is the result + of evaluating [expr], replacing the old value if existing. + [None] as [expr] removes the variable [name]. *) + val get : t -> path -> value option (** [get t path] returns the value at [path], or [None] if there is no value. *) @@ -127,3 +136,8 @@ val set : t -> path -> value option -> unit 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. *)