summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2009-10-06 12:17:05 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-06 14:36:11 -0500
commit8119b33d1810fd0f25b3592690d7e44527451292 (patch)
tree3969053e9cf39b0fb390ce368c9b4a7937033c2e /qemu-config.c
parentNever overwrite a QemuOpt (diff)
downloadqemu-kvm-8119b33d1810fd0f25b3592690d7e44527451292.tar.gz
qemu-kvm-8119b33d1810fd0f25b3592690d7e44527451292.tar.bz2
qemu-kvm-8119b33d1810fd0f25b3592690d7e44527451292.zip
Add qemu_net_opts
The first step in porting -net to QemuOpts. We do not include parameter descriptions in the QemuOptsList because we use the first parameter to choose which descriptions validate against. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-config.c')
-rw-r--r--qemu-config.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c
index f5c1a1225..bafaea2bd 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -152,6 +152,18 @@ QemuOptsList qemu_device_opts = {
},
};
+QemuOptsList qemu_net_opts = {
+ .name = "net",
+ .head = QTAILQ_HEAD_INITIALIZER(qemu_net_opts.head),
+ .desc = {
+ /*
+ * no elements => accept any params
+ * validation will happen later
+ */
+ { /* end of list */ }
+ },
+};
+
QemuOptsList qemu_rtc_opts = {
.name = "rtc",
.head = QTAILQ_HEAD_INITIALIZER(qemu_rtc_opts.head),
@@ -176,6 +188,7 @@ static QemuOptsList *lists[] = {
&qemu_drive_opts,
&qemu_chardev_opts,
&qemu_device_opts,
+ &qemu_net_opts,
&qemu_rtc_opts,
NULL,
};