From 52fa23d74f6308daf804c2330b0b27e0b4412594 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 20 Jul 2012 12:37:53 +0100 Subject: 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). --- src/guestfs-internal.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/guestfs-internal.h') 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; -- cgit