提交 c4dadf23 编写于 作者: C Claudio Bley

Clarify documentation on possible return values in case of errors

上级 f86e4630
...@@ -14423,8 +14423,8 @@ virNodeDeviceGetName(virNodeDevicePtr dev) ...@@ -14423,8 +14423,8 @@ virNodeDeviceGetName(virNodeDevicePtr dev)
* *
* Accessor for the parent of the device * Accessor for the parent of the device
* *
* Returns the name of the device's parent, or NULL if the * Returns the name of the device's parent, or NULL if an
* device has no parent. * error occurred or when the device has no parent.
*/ */
const char * const char *
virNodeDeviceGetParent(virNodeDevicePtr dev) virNodeDeviceGetParent(virNodeDevicePtr dev)
...@@ -14454,7 +14454,8 @@ virNodeDeviceGetParent(virNodeDevicePtr dev) ...@@ -14454,7 +14454,8 @@ virNodeDeviceGetParent(virNodeDevicePtr dev)
* *
* Accessor for the number of capabilities supported by the device. * 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 int
virNodeDeviceNumOfCaps(virNodeDevicePtr dev) virNodeDeviceNumOfCaps(virNodeDevicePtr dev)
...@@ -14489,7 +14490,8 @@ error: ...@@ -14489,7 +14490,8 @@ error:
* *
* Lists the names of the capabilities supported by the device. * 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 int
virNodeDeviceListCaps(virNodeDevicePtr dev, virNodeDeviceListCaps(virNodeDevicePtr dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册