[libvirt] [REPOST PATCH 1/2] vz: Unify vzDomObjFromDomain{Ref}
Nikolay Shirokovskiy
nshirokovskiy at virtuozzo.com
Fri Apr 20 06:38:37 UTC 2018
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 at redhat.com>
> ---
> 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 at virtuozzo.com>
More information about the libvir-list
mailing list