summaryrefslogtreecommitdiffstats
path: root/src/generator.ml
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-22 09:00:39 +0100
committerRichard Jones <rjones@redhat.com>2009-04-22 09:00:39 +0100
commit43db06ea892cc157324a6b837ca430607441c509 (patch)
treefc377195fcfda3b163d8f184a6965bb64b1bb018 /src/generator.ml
parent54dd7be5855055a698291084c0074a1abac7b921 (diff)
downloadlibguestfs-43db06ea892cc157324a6b837ca430607441c509.tar.gz
libguestfs-43db06ea892cc157324a6b837ca430607441c509.tar.xz
libguestfs-43db06ea892cc157324a6b837ca430607441c509.zip
Allow qemu binary to be overridden at runtime.
Diffstat (limited to 'src/generator.ml')
-rwxr-xr-xsrc/generator.ml26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 3b08993f..beb36708 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -284,6 +284,32 @@ The first character of C<param> string must be a C<-> (dash).
C<value> can be NULL.");
+ ("set_qemu", (RErr, [String "qemu"]), -1, [FishAlias "qemu"],
+ [],
+ "set the qemu binary",
+ "\
+Set the qemu binary that we will use.
+
+The default is chosen when the library was compiled by the
+configure script.
+
+You can also override this by setting the C<LIBGUESTFS_QEMU>
+environment variable.
+
+The string C<qemu> is stashed in the libguestfs handle, so the caller
+must make sure it remains valid for the lifetime of the handle.
+
+Setting C<qemu> to C<NULL> restores the default qemu binary.");
+
+ ("get_qemu", (RConstString "qemu", []), -1, [],
+ [],
+ "get the qemu binary",
+ "\
+Return the current qemu binary.
+
+This is always non-NULL. If it wasn't set already, then this will
+return the default qemu binary name.");
+
("set_path", (RErr, [String "path"]), -1, [FishAlias "path"],
[],
"set the search path",