[libvirt] [PATCH v2 18/29] conf: Document virDomainStorageSourceParse

Peter Krempa pkrempa at redhat.com
Fri Mar 22 18:00:54 UTC 2019


Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/conf/domain_conf.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 15bb00e800..8fa06aff03 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -9078,6 +9078,18 @@ virDomainStorageSourceParseBase(const char *type,
 }


+/**
+ * virDomainStorageSourceParse:
+ * @node: XML node pointing to the source element to parse
+ * @ctxt: XPath context
+ * @src: filled with parsed data
+ * @flags: XML parser flags
+ * @xmlopt: XML parser callbacks
+ *
+ * Parses @src definition from element pointed to by @node. Note that this
+ * does not parse the 'type' and 'format' attributes of @src and 'type' needs
+ * to be set correctly prior to calling this function.
+ */
 int
 virDomainStorageSourceParse(xmlNodePtr node,
                             xmlXPathContextPtr ctxt,
-- 
2.20.1




More information about the libvir-list mailing list