mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
virdomainobjlist: Document virDomainObjListForEach()
Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
7d5f0fda30
commit
56f024f457
@ -815,6 +815,19 @@ virDomainObjListHelper(void *payload,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* virDomainObjListForEach:
|
||||||
|
* @doms: Pointer to the domain object list
|
||||||
|
* @callback: callback to run over each domain on the list
|
||||||
|
* @opaque: opaque data to pass to @callback
|
||||||
|
*
|
||||||
|
* For every domain on the list (@doms) run @callback on it. If
|
||||||
|
* @callback fails (i.e. returns a negative value), the iteration
|
||||||
|
* carries still on until all domains are visited.
|
||||||
|
*
|
||||||
|
* Returns: 0 on success,
|
||||||
|
* -1 otherwise.
|
||||||
|
*/
|
||||||
int
|
int
|
||||||
virDomainObjListForEach(virDomainObjListPtr doms,
|
virDomainObjListForEach(virDomainObjListPtr doms,
|
||||||
virDomainObjListIterator callback,
|
virDomainObjListIterator callback,
|
||||||
|
Loading…
Reference in New Issue
Block a user