Ticket #87 (closed defect: fixed)

Opened 2 years ago

Last modified 18 months ago

Incomplete docs of libusb_get_device_list

Reported by: www.google.com/accounts/o8/id?id=aitoawlbfa_iwnmgtqit6eck5vjmkejlybqinoe Owned by: stuge
Milestone: Component: libusb-1.0
Keywords: Cc:
Blocked By: Blocks:

Description

As explained in the mailinglist thread the documentation of libusb_get_device_list is incomplete.

The documentation states that it either returns the number of devices in the list or LIBUSB_ERROR_NO_MEM. However libusb_get_device_list() in core will currently pass any error code it receives from the backend up to the caller.

I think the documentation should document this properly.

Change History

comment:1 Changed 2 years ago by stuge

  • Component changed from libusb-1.1 to libusb-1.0

Yes, this should be fixed. A patch for libusb.git would be most welcome!

comment:2 Changed 18 months ago by stuge

  • Resolution set to fixed
  • Status changed from new to closed

In [3e6e257f55156c4600f3116a0befba8cee62872a/libusb]:

Document that libusb_get_device_list() can return any libusb_error code

Fixes #87.

Note: See TracTickets for help on using tickets.