Combined binary.
[virt-mem.git] / lib / virt_mem.mli
index a0f1963..1dc1c23 100644 (file)
@@ -37,11 +37,16 @@ type image =
         table could not be found at all.
   *)
 
-val start : Arg.usage_msg -> bool * image list
-  (** Programs call this to parse the standard command-line arguments
-      and do all the standard processing of domains into images.
-
-      The returned tuple is:
-      - verbose mode
-      - list of images
+val register : string -> string -> Arg.usage_msg -> bool -> (bool -> image list -> unit) -> unit
+  (** Tools register themselves with this call.
+
+      The parameters are:
+      - tool name (eg. "uname")
+      - short summary
+      - full usage message
+      - is it a virt-cmd?
+      - run function (invoked as [run verbose images])
   *)
+
+val main : unit -> unit
+  (** Entry point for the combined virt-mem executable. *)