Added some examples.
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 26 Apr 2008 08:48:58 +0000 (09:48 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 26 Apr 2008 08:48:58 +0000 (09:48 +0100)
lib/diskimage.mli

index 113c99b..e3a85b6 100644 (file)
  *)
 
 (**
+   {2 Examples}
+
+{[
+  let machine = open_machine "host" ["hda", "/dev/hda"] in
+  let machine = scan_machine machine in
+  (* do what you want with the scan results ... *)
+  close_machine machine
+]}
+*)
+
+(**
    {2 Machine/device model}
 
    The "machine/device model" that we currently understand looks