]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Rework/rename virDomainObjListFindByIDRef
authorJohn Ferlan <jferlan@redhat.com>
Fri, 9 Mar 2018 15:59:28 +0000 (10:59 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 23 Apr 2018 10:41:45 +0000 (06:41 -0400)
commit868136624f40a665a106280f5d3971d108cf7c4d
treeb63ee56bb4470e248a89c7ba9601726014190411
parentfd9ef3b31ecb1a72fd6016959a66616f81e5f9ba
conf: Rework/rename virDomainObjListFindByIDRef

Rework the code such that virDomainObjListFindByID will always
return a locked/ref counted object so that the callers can
always do the same cleanup logic to call virDomainObjEndAPI.
Makes accessing the objects much more consistent.

NB:
There were 2 callers (lxcDomainLookupByID and qemuDomainLookupByID)
that were already using the ByID name, but not virDomainObjEndAPI -
these were changed as well in this update/patch.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Jim Fehlig <jfehlig@suse.com>
13 files changed:
src/bhyve/bhyve_driver.c
src/conf/virdomainobjlist.c
src/conf/virdomainobjlist.h
src/libvirt_private.syms
src/libxl/libxl_domain.c
src/libxl/libxl_driver.c
src/lxc/lxc_driver.c
src/openvz/openvz_driver.c
src/qemu/qemu_driver.c
src/test/test_driver.c
src/uml/uml_driver.c
src/vmware/vmware_driver.c
src/vz/vz_driver.c