mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 06:50:22 +03:00
virXMLNodeGetSubelementList: Document return value semantics
The returned value is always non-NULL. Callers need to check the length of the returned array instead. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
482a2d119b
commit
fcd47086f4
@ -909,6 +909,8 @@ virXMLNodeGetSubelement(xmlNodePtr node,
|
||||
* Find and return a sub-elements node of @node named @name in a GPtrArray
|
||||
* populated with the xmlNodePtr objects. Caller is responsible for freeing the
|
||||
* array but not the contained xmlNode objects.
|
||||
*
|
||||
* Note: The returned GPtrArray is non-NULL even if @node doesn't contain such sub-elements
|
||||
*/
|
||||
GPtrArray *
|
||||
virXMLNodeGetSubelementList(xmlNodePtr node,
|
||||
|
Loading…
x
Reference in New Issue
Block a user