提交 636d66e6 编写于 作者: Y Yue wenyuan 提交者: Michal Privoznik

LXC: update comments of lxcDomainCreateXMLWithFiles() and lxcDomainCreateXML()

The comments for lxcDomainCreateXMLWithFiles are out of date. So update them.
And add comments for lxcDomainCreateXML
Signed-off-by: NWang Rui <moon.wangrui@huawei.com>
Signed-off-by: NYue wenyuan <yuewenyuan@huawei.com>
Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
上级 7e157858
...@@ -1126,14 +1126,16 @@ static int lxcDomainCreateWithFlags(virDomainPtr dom, ...@@ -1126,14 +1126,16 @@ static int lxcDomainCreateWithFlags(virDomainPtr dom,
} }
/** /**
* lxcDomainCreateXML: * lxcDomainCreateXMLWithFiles:
* @conn: pointer to connection * @conn: pointer to connection
* @xml: XML definition of domain * @xml: XML definition of domain
* @flags: Must be 0 for now * @nfiles: number of file descriptors passed
* @files: list of file descriptors passed
* @flags: bitwise-OR of supported virDomainCreateFlags
* *
* Creates a domain based on xml and starts it * Creates a domain based on xml and starts it
* *
* Returns 0 on success or -1 in case of error * Returns a new domain object or NULL in case of failure.
*/ */
static virDomainPtr static virDomainPtr
lxcDomainCreateXMLWithFiles(virConnectPtr conn, lxcDomainCreateXMLWithFiles(virConnectPtr conn,
...@@ -1213,7 +1215,16 @@ lxcDomainCreateXMLWithFiles(virConnectPtr conn, ...@@ -1213,7 +1215,16 @@ lxcDomainCreateXMLWithFiles(virConnectPtr conn,
return dom; return dom;
} }
/**
* lxcDomainCreateXML:
* @conn: pointer to connection
* @xml: XML definition of domain
* @flags: bitwise-OR of supported virDomainCreateFlags
*
* Creates a domain based on xml and starts it
*
* Returns a new domain object or NULL in case of failure.
*/
static virDomainPtr static virDomainPtr
lxcDomainCreateXML(virConnectPtr conn, lxcDomainCreateXML(virConnectPtr conn,
const char *xml, const char *xml,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册