Re: [libvirt] [PATCH 06/13] qemu: Refactor qemuDomainGetChardevTLSObjects to converge code

2017-02-21 Thread Jiri Denemark
On Fri, Feb 17, 2017 at 14:39:23 -0500, John Ferlan wrote: > 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

[libvirt] [PATCH 06/13] qemu: Refactor qemuDomainGetChardevTLSObjects to converge code

2017-02-17 Thread John Ferlan
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