]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
LXC: update comments of lxcDomainCreateXMLWithFiles() and lxcDomainCreateXML()
authorYue wenyuan <yuewenyuan@huawei.com>
Wed, 25 Jun 2014 08:16:16 +0000 (16:16 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Jul 2014 11:19:27 +0000 (13:19 +0200)
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>
src/lxc/lxc_driver.c

index 3875bf3e751f3f4c7ec3b82f21c8971de97d26dd..a9a87eab8e87e73732507adbe8042359917096af 100644 (file)
@@ -1126,14 +1126,16 @@ static int lxcDomainCreateWithFlags(virDomainPtr dom,
 }
 
 /**
- * lxcDomainCreateXML:
+ * lxcDomainCreateXMLWithFiles:
  * @conn: pointer to connection
  * @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
  *
- * Returns 0 on success or -1 in case of error
+ * Returns a new domain object or NULL in case of failure.
  */
 static virDomainPtr
 lxcDomainCreateXMLWithFiles(virConnectPtr conn,
@@ -1213,7 +1215,16 @@ lxcDomainCreateXMLWithFiles(virConnectPtr conn,
     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
 lxcDomainCreateXML(virConnectPtr conn,
                    const char *xml,