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: Wang Rui <moon.wangrui@huawei.com>
Signed-off-by: Yue wenyuan <yuewenyuan@huawei.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Yue wenyuan 2014-06-25 16:16:16 +08:00 committed by Michal Privoznik
parent 7e157858b4
commit 636d66e628

View File

@ -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,
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,