qemu-option: Move the implied first name into QemuOptsList
authorMarkus Armbruster <armbru@redhat.com>
Wed, 10 Feb 2010 18:52:18 +0000 (19:52 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 16 Mar 2010 16:45:34 +0000 (17:45 +0100)
commit7cb66ea01a703a99176be2e00fba26b9c19a91e2
tree2faf279be4942f2c30b535f508cf51ee88a82844
parent0e0d6d8dffdd91ab62c16c55424f11fda8f0684c
qemu-option: Move the implied first name into QemuOptsList

We sometimes permit omitting the first option name, for example
-device foo is short for -device driver=foo.  The name to use
("driver" in the example) is passed as argument to qemu_opts_parse().
For each QemuOptsList, we use at most one such name.

Move the name into QemuOptsList, and pass whether to permit the
abbreviation.  This ensures continued consistency, and simplifies the
commit after next in this series.
hw/pci-hotplug.c
hw/qdev.c
hw/usb-net.c
net.c
qemu-config.c
qemu-option.c
qemu-option.h
vl.c