]> xenbits.xensource.com Git - libvirt.git/commitdiff
Clarify documentation on possible return values in case of errors
authorClaudio Bley <cbley@av-test.de>
Thu, 9 Jan 2014 06:58:51 +0000 (07:58 +0100)
committerClaudio Bley <cbley@av-test.de>
Fri, 10 Jan 2014 08:30:57 +0000 (09:30 +0100)
src/libvirt.c

index f287933be263e1cf32b2799e11d33265357e313c..87a4d46fc4c06e82fa46819b9a7cfe62699a6eaa 100644 (file)
@@ -14423,8 +14423,8 @@ virNodeDeviceGetName(virNodeDevicePtr dev)
  *
  * Accessor for the parent of the device
  *
- * Returns the name of the device's parent, or NULL if the
- * device has no parent.
+ * Returns the name of the device's parent, or NULL if an
+ * error occurred or when the device has no parent.
  */
 const char *
 virNodeDeviceGetParent(virNodeDevicePtr dev)
@@ -14454,7 +14454,8 @@ virNodeDeviceGetParent(virNodeDevicePtr dev)
  *
  * Accessor for the number of capabilities supported by the device.
  *
- * Returns the number of capabilities supported by the device.
+ * Returns the number of capabilities supported by the device or -1
+ * in case of error.
  */
 int
 virNodeDeviceNumOfCaps(virNodeDevicePtr dev)
@@ -14489,7 +14490,8 @@ error:
  *
  * Lists the names of the capabilities supported by the device.
  *
- * Returns the number of capability names listed in @names.
+ * Returns the number of capability names listed in @names or -1
+ * in case of error.
  */
 int
 virNodeDeviceListCaps(virNodeDevicePtr dev,