]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Improve qemuDomainChrTargetDefValidate()
authorAndrea Bolognani <abologna@redhat.com>
Fri, 24 Nov 2017 16:52:26 +0000 (17:52 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 28 Nov 2017 14:46:33 +0000 (15:46 +0100)
commit9ae116eadf7578282d284635fa23a4265b8db734
tree86fdf451dd730ef414d46243b2124aeb30021f2b
parent81e14caf60ac28acf9b7147617ef26bb99955757
qemu: Improve qemuDomainChrTargetDefValidate()

Instead of validating each target type / address type combination
separately, create a small helper to perform the matching and
collapse all existing checks into a single one.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_domain.c