summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2011-09-14 04:00:33 +0200
committerPeter Stuge <peter@stuge.se>2011-10-17 16:25:50 +0200
commit3e6e257f55156c4600f3116a0befba8cee62872a (patch)
tree2896f7afe912f64f9c0eafdf4b0c18c77a80f82e
parent737ba04ea40f19564b445fbb489907529e75edc9 (diff)
downloadlibusb-3e6e257f55156c4600f3116a0befba8cee62872a.tar.gz
Document that libusb_get_device_list() can return any libusb_error code
Fixes #87.
-rw-r--r--libusb/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libusb/core.c b/libusb/core.c
index 61083bf..34953a2 100644
--- a/libusb/core.c
+++ b/libusb/core.c
@@ -594,8 +594,8 @@ struct libusb_device *usbi_get_device_by_session_id(struct libusb_context *ctx,
* \param ctx the context to operate on, or NULL for the default context
* \param list output location for a list of devices. Must be later freed with
* libusb_free_device_list().
- * \returns the number of devices in the outputted list, or LIBUSB_ERROR_NO_MEM
- * on memory allocation failure.
+ * \returns The number of devices in the outputted list, or any
+ * \ref libusb_error according to errors encountered by the backend.
*/
ssize_t API_EXPORTED libusb_get_device_list(libusb_context *ctx,
libusb_device ***list)