diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2017-02-03 12:06:48 +0000 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-02-09 17:28:49 +0100 |
commit | e998e2090fffe8083af381e41dc30a25e22fc28b (patch) | |
tree | 67055450f1dd10270b20e36c11766fa87a12e7ab /cpus.c | |
parent | 57a6d6d538c596292003d131035dc4f7cb44474d (diff) | |
download | qemu-e998e2090fffe8083af381e41dc30a25e22fc28b.zip |
util: add iterators for QemuOpts values
To iterate over all QemuOpts currently requires using a callback
function which is inconvenient for control flow. Add support for
using iterator functions more directly
QemuOptsIter iter;
QemuOpt *opt;
qemu_opts_iter_init(&iter, opts, "repeated-key");
while ((opt = qemu_opts_iter_next(&iter)) != NULL) {
....do something...
}
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170203120649.15637-8-berrange@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'cpus.c')
0 files changed, 0 insertions, 0 deletions