On 02.04.2018 16:21, John Ferlan wrote: > Rather than have two API's doing different things for different > callers, let's make one API that will always return a locked and > ref counted object. That way, the callers will always know that > they must call virDomainObjEndAPI and not have to decide whether > they should call virObjectUnlock instead. > > This will make things consistent with LookupByName which returns > the locked and ref counted object. > > Signed-off-by: John Ferlan <jferlan@xxxxxxxxxx> > --- > src/vz/vz_driver.c | 111 ++++++++++++++++++++++++++--------------------------- > src/vz/vz_utils.c | 32 +-------------- > src/vz/vz_utils.h | 1 - > 3 files changed, 56 insertions(+), 88 deletions(-) > Reviewed-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx> -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list