summaryrefslogtreecommitdiffstats
path: root/src/guestfs-internal.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-20 12:37:53 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-20 13:43:55 +0100
commit52fa23d74f6308daf804c2330b0b27e0b4412594 (patch)
treeeb9a813234a45f564ba8844c9cb64d198fd12295 /src/guestfs-internal.h
parent4df6beee54ca870faa92bcee346a671e19c80237 (diff)
downloadlibguestfs-52fa23d74f6308daf804c2330b0b27e0b4412594.tar.gz
libguestfs-52fa23d74f6308daf804c2330b0b27e0b4412594.tar.xz
libguestfs-52fa23d74f6308daf804c2330b0b27e0b4412594.zip
launch: Move guestfs_config API and build list of qemu parameters in handle.
Move and rewrite guestfs_config so it accumulates a list of qemu parameters in the handle. These are added to the appliance at launch time (with attach method == unix:... you'll now get an error).
Diffstat (limited to 'src/guestfs-internal.h')
-rw-r--r--src/guestfs-internal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index f046ba1d..b33605c3 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -149,6 +149,14 @@ struct drive {
bool use_cache_none;
};
+/* Extra qemu parameters (from guestfs_config). */
+struct qemu_param {
+ struct qemu_param *next;
+
+ char *qemu_param;
+ char *qemu_value; /* May be NULL. */
+};
+
struct guestfs_h
{
struct guestfs_h *next; /* Linked list of open handles. */
@@ -173,6 +181,8 @@ struct guestfs_h
struct drive *drives; /* Drives added by add-drive* APIs. */
+ struct qemu_param *qemu_params; /* Extra qemu parameters. */
+
enum attach_method attach_method;
char *attach_method_arg;