Version 0.1.2.
[guestfs-browser.git] / utils.mli
index 1bc1669..ad14dd0 100644 (file)
--- a/utils.mli
+++ b/utils.mli
@@ -75,7 +75,8 @@ val mklabel : string -> GObj.widget
       returned as a generic widget. *)
 
 val markup_escape : string -> string
-  (** Call g_markup_escape. *)
+  (** Like g_markup_escape but with extra protection for strings
+      containing \0 characters. *)
 
 val libguestfs_version_string : unit -> string
   (** Return the version of libguestfs as a string. *)
@@ -107,3 +108,24 @@ val is_ro : int64 -> bool
 val is_wo : int64 -> bool
 val is_xo : int64 -> bool
   (** rwx/ugo bits. *)
+
+val tmpdir : unit -> string
+  (** [tmpdir ()] returns a newly created temporary directory.  The
+      tmp directory is automatically removed when the program exits.
+      Note that a fresh temporary directory is returned each time you
+      call this function. *)
+
+val i32_of_string_le : string -> int32
+  (** [i32_of_string_le str] treats the 4 character string [str] as
+      a little endian 32 bit int.  NB. The string {b must} be
+      4 characters or longer. *)
+
+val i32_of_string_be : string -> int32
+  (** [i32_of_string_le str] treats the 4 character string [str] as
+      a big endian 32 bit int.  NB. The string {b must} be
+      4 characters or longer. *)
+
+val i64_of_string_le : string -> int64
+  (** [i64_of_string_le str] treats the 8 character string [str] as
+      a little endian 64 bit int.  NB. The string {b must} be
+      8 characters or longer. *)