[libvirt] [PATCH v2 09/11] interface: Introduce virInterfaceObjEndAPI
Peter Krempa
pkrempa at redhat.com
Fri May 26 12:56:25 UTC 2017
On Fri, May 26, 2017 at 07:59:08 -0400, John Ferlan wrote:
> For now it'll just call the virInterfaceObjUnlock, but a future adjustment
> will do something different.
>
> The virInterfaceObjUnlock is now private to virinterfaceobj.c with a
> short term forward reference.
>
> Additionally, make virInterfaceObjLock private since it's only used in
> virinterfaceobj anyway. For now this will involved creating a forward
> reference, but this will go away soon too.
>
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
> src/conf/virinterfaceobj.c | 17 +++++++++++++++--
> src/conf/virinterfaceobj.h | 9 +++------
> src/libvirt_private.syms | 3 +--
> src/test/test_driver.c | 15 +++++++--------
> 4 files changed, 26 insertions(+), 18 deletions(-)
[...]
>
> @@ -82,6 +85,16 @@ virInterfaceObjUnlock(virInterfaceObjPtr obj)
>
>
> void
> +virInterfaceObjEndAPI(virInterfaceObjPtr *obj)
> +{
> + if (!*obj)
> + return;
> +
> + virInterfaceObjUnlock(*obj);
The double pointer is really pointless in this function. Did you forget
to set it to NULL after the unlock as we do in the other EndAPI
functions?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170526/f273ef7e/attachment-0001.sig>
More information about the libvir-list
mailing list