|
USBIP C library 0.7.0
Virtual USB devices & host drivers over USB/IP
|
Return codes shared across the library. More...
Macros | |
| #define | USB_SUCCESS |
| Error/status codes - same values as libusb, so ported constants keep working. | |
| #define | USB_ERROR_IO |
| Input/output error on the transport. | |
| #define | USB_ERROR_INVALID_PARAM |
| An argument was invalid. | |
| #define | USB_ERROR_ACCESS |
| Insufficient permissions. | |
| #define | USB_ERROR_NO_DEVICE |
| The device has been disconnected. | |
| #define | USB_ERROR_NOT_FOUND |
| Entity not found (no matching device/endpoint) | |
| #define | USB_ERROR_BUSY |
| Resource busy. | |
| #define | USB_ERROR_TIMEOUT |
| The operation timed out. | |
| #define | USB_ERROR_PIPE |
| Endpoint STALLed / pipe error. | |
| #define | USB_ERROR_NO_MEM |
| Out of memory. | |
| #define | USB_ERROR_OTHER |
| Other / unspecified error. | |
Functions | |
| const char * | usb_strerror (int code) |
Map a USB_* status/error code to a human-readable string. | |
Return codes shared across the library.
The USB_* error codes use the same numeric values as libusb so ported constants keep working; usb_strerror() renders them as text.
| #define USB_SUCCESS |
Error/status codes - same values as libusb, so ported constants keep working.
Render any of them with usb_strerror(). No error
| #define USB_ERROR_IO |
Input/output error on the transport.
| #define USB_ERROR_INVALID_PARAM |
An argument was invalid.
| #define USB_ERROR_ACCESS |
Insufficient permissions.
| #define USB_ERROR_NO_DEVICE |
The device has been disconnected.
| #define USB_ERROR_NOT_FOUND |
Entity not found (no matching device/endpoint)
| #define USB_ERROR_BUSY |
Resource busy.
| #define USB_ERROR_TIMEOUT |
The operation timed out.
| #define USB_ERROR_PIPE |
Endpoint STALLed / pipe error.
| #define USB_ERROR_NO_MEM |
Out of memory.
| #define USB_ERROR_OTHER |
Other / unspecified error.
| const char * usb_strerror | ( | int | code | ) |
Map a USB_* status/error code to a human-readable string.
| code | a value from the USB_* codes (0 is USB_SUCCESS). |
NULL; do not free). Codes without a dedicated message render as "other error".