[libvirt] [PATCH 14/16] network: Adjust virNetworkObjNew call and return

Pavel Hrdina phrdina at redhat.com
Mon Jul 24 11:37:57 UTC 2017


On Fri, May 19, 2017 at 09:03:22AM -0400, John Ferlan wrote:
> Have the call take a virNetworkDefPtr and save it in the object.
> 
> Have virNetworkObjNew return a locked obj
> 
> Avoids the need for a virNetworkObjSetDef type API for the one test need.
> Update the test code and do some other name changes to make it look like
> other code.

As it was already objected, I would rather have the
virNetworkObjSetDef() API instead of requiring to have the @def as
argument for virNetworkObjNew().  It give us more flexibility.

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170724/43759273/attachment-0001.sig>


More information about the libvir-list mailing list