tags:

views:

22

answers:

2

I am trying to debug a libusb-based driver that work just fine on Linux and Windows, but fail on Mac OS X. However I am unable to find a description of the return codes from libusb.

+1  A: 

There's documentation and brief descriptions here - are these the codes you mean?

enum libusb_error {
    LIBUSB_SUCCESS = 0,
    LIBUSB_ERROR_IO = -1,
    LIBUSB_ERROR_INVALID_PARAM = -2,
    LIBUSB_ERROR_ACCESS = -3,
    LIBUSB_ERROR_NO_DEVICE = -4,
    LIBUSB_ERROR_NOT_FOUND = -5,
    LIBUSB_ERROR_BUSY = -6,
    LIBUSB_ERROR_TIMEOUT = -7,
    LIBUSB_ERROR_OVERFLOW = -8,
    LIBUSB_ERROR_PIPE = -9,
    LIBUSB_ERROR_INTERRUPTED = -10,
    LIBUSB_ERROR_NO_MEM = -11,
    LIBUSB_ERROR_NOT_SUPPORTED = -12,
    LIBUSB_ERROR_OTHER = -99
}
Rup
+1  A: 

You can find these codes here.

This might be of interest for you too.

Thariama
Thanks for the last link! From errno.h I find that it -60 means that the operation times out. Now I just have to figure out why.
trondd
let me know what you found out
Thariama