From 8634421d865fb745cc6ce742f6e43d306a071bac Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] Added some examples. --- lib/diskimage.mli | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/diskimage.mli b/lib/diskimage.mli index 113c99b..e3a85b6 100644 --- a/lib/diskimage.mli +++ b/lib/diskimage.mli @@ -18,6 +18,17 @@ *) (** + {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 -- 1.8.3.1