]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: command: move qemuBuildGraphicsVNCCommandLine validation to qemu_domain.c
authorDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 9 Dec 2019 23:15:26 +0000 (20:15 -0300)
committerCole Robinson <crobinso@redhat.com>
Mon, 16 Dec 2019 22:51:23 +0000 (17:51 -0500)
commit45270337f057f26ce484f6e2cf197aeeb7d0c4ea
treee66f96238b8dcc6d9abea446c23c99a97c297fad
parent35596267908d680f5d3245295c0ccf3fc9335a3b
qemu: command: move qemuBuildGraphicsVNCCommandLine validation to qemu_domain.c

Move the VNC cap validation from qemuBuildGraphicsVNCCommandLine()
to qemuDomainDeviceDefValidateGraphics(). This function is called by
qemuDomainDefValidate(), validating the graphics parameters in domain
define time.

Tests were adapted to consider SDL validation in this earlier stage.

Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
tests/qemuhotplugtest.c
tests/qemuxml2xmltest.c