diff options
| author | Paolo Bonzini | 2020-11-09 09:50:46 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2020-12-15 18:52:06 +0100 |
| commit | 45c53fe64c28239b7504d00d76fe37ef31c0eefa (patch) | |
| tree | 01135eec11ca852db636b056141b80c94fb6611a /util/filemonitor-stub.c | |
| parent | qemu-option: simplify search for end of key (diff) | |
| download | qemu-45c53fe64c28239b7504d00d76fe37ef31c0eefa.tar.gz qemu-45c53fe64c28239b7504d00d76fe37ef31c0eefa.tar.xz qemu-45c53fe64c28239b7504d00d76fe37ef31c0eefa.zip | |
qemu-option: pass QemuOptsList to opts_accepts_any
A QemuOptsList can be of one of two kinds: either it is pre-validated, or
it accepts any key and validation happens somewhere else (typically in
a Visitor or against a list of QOM properties). opts_accepts_any
returns true if a QemuOpts instance was created from a QemuOptsList of
the latter kind, but there is no function to do the check on a QemuOptsList.
Since this property comes from the QemuOptsList and almost all callers of
opts_accepts_any use opts->list anyway, modify the function to accept
QemuOptsList.
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'util/filemonitor-stub.c')
0 files changed, 0 insertions, 0 deletions
