Prepare for first binary release.
[guestfs-browser.git] / utils.mli
index 1959ef6..3e93755 100644 (file)
--- a/utils.mli
+++ b/utils.mli
@@ -35,11 +35,6 @@ val set_verbose_flag : unit -> unit
 
       This is set through the --verbose command line option. *)
 
-val write_flag : unit -> bool
-val set_write_flag : unit -> unit
-  (** Writes are prevented unless the user sets this to [true]
-      through the command line option --write. *)
-
 val debug : ('a, unit, string, unit) format4 -> 'a
   (** A printf-like function for writing debugging messages. *)
 
@@ -48,6 +43,18 @@ val failwith : ('a, unit, string, 'b) format4 -> 'a
       take a printf-like argument list, and also logs errors on stderr
       when verbose is enabled. *)
 
+val trace : unit -> bool
+val set_trace_flag : unit -> unit
+  (** If this contains [true] then calls to libguestfs are traced.
+
+      This is set through the [-x] command line option. *)
+
+val connect_uri : unit -> string option
+val set_connect_uri : string option -> unit
+  (** The libvirt connection URI.
+
+      This is set through the [--connect] command line option. *)
+
 val utf8_rarrow : string (** UTF-8 RIGHTWARDS ARROW *)
 
 val human_size_1k : int64 -> string
@@ -55,3 +62,16 @@ val human_size_1k : int64 -> string
 
 val unique : unit -> int
   (** Return a new integer each time called. *)
+
+val mklabel : string -> GObj.widget
+  (** Convenience function to make a label containing some text.  It is
+      returned as a generic widget. *)
+
+val libguestfs_version_string : unit -> string
+  (** Return the version of libguestfs as a string. *)
+
+val libvirt_version_string : unit -> string
+  (** Return the version of libvirt as a string. *)
+
+val (//) : string -> string -> string
+  (** Concatenate two paths. *)