diff options
author | Mark McLoughlin | 2009-10-06 13:17:04 +0200 |
---|---|---|
committer | Anthony Liguori | 2009-10-06 21:36:11 +0200 |
commit | dc9ca4ba27be4fe6a0284061b8f056c4364fb0d9 (patch) | |
tree | be8bc7fbdb8090b89e1b0e3b3b7fdf5cc0d1506f /qemu-config.h | |
parent | Add qemu_opts_validate() for post parsing validation (diff) | |
download | qemu-dc9ca4ba27be4fe6a0284061b8f056c4364fb0d9.tar.gz qemu-dc9ca4ba27be4fe6a0284061b8f056c4364fb0d9.tar.xz qemu-dc9ca4ba27be4fe6a0284061b8f056c4364fb0d9.zip |
Never overwrite a QemuOpt
Rather than overwriting a QemuOpt, just add a new one to the tail and
always do a reverse search for parameters to preserve the same
behaviour. We use this order so that foreach() iterates over the opts
in their original order.
This will allow us handle options where multiple values for the same
parameter is allowed - e.g. -net user,hostfwd=
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qemu-config.h')
0 files changed, 0 insertions, 0 deletions