[libvirt] [PATCH v4 3/3] interface: Convert virInterfaceObj to use virObjectLockable
Erik Skultety
eskultet at redhat.com
Mon Jun 5 15:23:13 UTC 2017
On Sat, Jun 03, 2017 at 06:53:23AM -0400, John Ferlan wrote:
> Now that we have a bit more control, let's convert our object into
> a lockable object and let that magic handle the create and lock/unlock.
>
> This commit also introduces virInterfaceObjEndAPI in order to handle the
> lock unlock and object unref in one call for consumers returning a NULL
> obj upon return. This removes the need for virInterfaceObj{Lock|Unlock}
> external API's.
>
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
> po/POTFILES.in | 1 -
> src/conf/virinterfaceobj.c | 106 ++++++++++++++++++++++++---------------------
> src/conf/virinterfaceobj.h | 9 ++--
> src/libvirt_private.syms | 3 +-
> src/test/test_driver.c | 16 +++----
> 5 files changed, 68 insertions(+), 67 deletions(-)
>
ACK.
Erik
More information about the libvir-list
mailing list