git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@253 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
24 lines
448 B
C
24 lines
448 B
C
// copied from libusb-win32.sourceforge.net
|
|
#ifndef __ERROR_H__
|
|
#define __ERROR_H__
|
|
|
|
/* Connection timed out */
|
|
#define ETIMEDOUT 116
|
|
|
|
typedef enum {
|
|
USB_ERROR_TYPE_NONE = 0,
|
|
USB_ERROR_TYPE_STRING,
|
|
USB_ERROR_TYPE_ERRNO,
|
|
} usb_error_type_t;
|
|
|
|
|
|
void usb_error(char *format, ...);
|
|
void usb_message(char *format, ...);
|
|
const char *usb_win_error_to_string(void);
|
|
int usb_win_error_to_errno(void);
|
|
|
|
|
|
|
|
#endif /* _ERROR_H_ */
|
|
|