]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Refactor qemuDomainGetChardevTLSObjects to converge code
authorJohn Ferlan <jferlan@redhat.com>
Wed, 22 Feb 2017 17:54:10 +0000 (12:54 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 8 Mar 2017 19:31:10 +0000 (14:31 -0500)
commit479b045b54bda85afa9fe1bfa82226d504e67a28
treee1a3471aee3cf24497b19b47bf43cb90e63e1df1
parentee4f382a9c365cfdd53b1c4cddddf3fbd7af93cd
qemu: Refactor qemuDomainGetChardevTLSObjects to converge code

Create a qemuDomainAddChardevTLSObjects which will encapsulate the
qemuDomainGetChardevTLSObjects and qemuDomainAddTLSObjects so that
the callers don't need to worry about the props.

Move the dev->type and haveTLS checks in to the Add function to avoid
an unnecessary call to qemuDomainAddTLSObjects

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_hotplug.c