]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: domain: Introduce virDomainDeviceIterateFlags
authorErik Skultety <eskultet@redhat.com>
Fri, 7 Dec 2018 12:13:03 +0000 (13:13 +0100)
committerErik Skultety <eskultet@redhat.com>
Wed, 12 Dec 2018 14:12:35 +0000 (15:12 +0100)
commit88d24aaccc1e31ff1ce682f9496cf08cc7f7c216
tree36a8cff8599960b2a05b1b0536366f921c98d2fb
parent414c51b7a11cc52c4276c7220d0b973c57c725d6
conf: domain: Introduce virDomainDeviceIterateFlags

Validation of domain devices is accomplished via a generic device
iterator which takes a callback, iterates over all kinds of supported
device types and invokes the callback on every single device. However,
there might be cases when we need to alter the behaviour of the
iteration (most notably skip or include a group of devices). Therefore,
this patch introduces iterator flags.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/conf/domain_conf.c