]> git.proxmox.com Git - qemu.git/commit - qemu-option.h
Add qemu_opts_validate() for post parsing validation
authorMark McLoughlin <markmc@redhat.com>
Tue, 6 Oct 2009 11:17:03 +0000 (12:17 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 6 Oct 2009 19:36:11 +0000 (14:36 -0500)
commit5dc519ef9207bd7d209c31cf885a6c849c615f98
treec15b1e5c919af84f8d936f6bacb21b5b3e08aad1
parent2cfa571f79c58c56fe0711e8306d43d3bce591f7
Add qemu_opts_validate() for post parsing validation

Several qemu command line options have a parameter whose value affects
what other parameters are accepted for the option.

In these cases, we can have an empty description table in the
QemuOptsList and once the option has been parsed we can use a suitable
description table to validate the other parameters based on the value of
that parameter.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-option.c
qemu-option.h