mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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.
This commit is contained in:
parent
01e7f18869
commit
8212c64f0e
8 changed files with 24 additions and 13 deletions
|
@ -54,7 +54,7 @@ static PCIDevice *qemu_pci_hot_add_nic(Monitor *mon,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
opts = qemu_opts_parse(&qemu_net_opts, opts_str ? opts_str : "", NULL);
|
||||
opts = qemu_opts_parse(&qemu_net_opts, opts_str ? opts_str : "", 0);
|
||||
if (!opts) {
|
||||
monitor_printf(mon, "parsing network options '%s' failed\n",
|
||||
opts_str ? opts_str : "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue