Re: [libvirt] [PATCH v2 4/4] vmware: Use virDomainObjListFindBy{UUID|ID}Ref

2018-04-20 Thread Pavel Hrdina
On Mon, Apr 02, 2018 at 09:16:40AM -0400, John Ferlan wrote: > For vmwareDomObjFromDomainLocked and vmwareDomainLookupByID > let's return a locked and referenced @vm object so that callers > can then use the common and more consistent virDomainObjEndAPI > in order to handle cleanup rather than need

[libvirt] [PATCH v2 4/4] vmware: Use virDomainObjListFindBy{UUID|ID}Ref

2018-04-02 Thread John Ferlan
For vmwareDomObjFromDomainLocked and vmwareDomainLookupByID let's return a locked and referenced @vm object so that callers can then use the common and more consistent virDomainObjEndAPI in order to handle cleanup rather than needing to know that the returned object is locked and calling virObjectU