提交 56f024f4 编写于 作者: M Michal Privoznik

virdomainobjlist: Document virDomainObjListForEach()

Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
Reviewed-by: NJán Tomko <jtomko@redhat.com>
上级 7d5f0fda
......@@ -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
virDomainObjListForEach(virDomainObjListPtr doms,
virDomainObjListIterator callback,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册