8681366 conf: Rework/rename virDomainObjListFindByIDRef

Authored and Committed by John Ferlan 5 years ago
    conf: Rework/rename virDomainObjListFindByIDRef
    
    Rework the code such that virDomainObjListFindByID will always
    return a locked/ref counted object so that the callers can
    always do the same cleanup logic to call virDomainObjEndAPI.
    Makes accessing the objects much more consistent.
    
    NB:
    There were 2 callers (lxcDomainLookupByID and qemuDomainLookupByID)
    that were already using the ByID name, but not virDomainObjEndAPI -
    these were changed as well in this update/patch.
    
    Signed-off-by: John Ferlan <jferlan@redhat.com>
    Reviewed-by: Jim Fehlig <jfehlig@suse.com>
    
        
file modified
+1 -1
file modified
+9 -26
file modified
+0 -2
file modified
+0 -1
file modified
+1 -1
file modified
+1 -1
file modified
+1 -2
file modified
+1 -1
file modified
+2 -3
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1
file modified
+1 -1