summaryrefslogtreecommitdiffstats
path: root/libusb/error.h
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-11-25 20:49:10 +0100
committerPali Rohár <pali.rohar@gmail.com>2012-11-25 20:49:10 +0100
commitcffeb329c4fa3863af83a2ea1dbf53ba01627059 (patch)
tree6ff0a5ba8d98d78f0e7ccb0a0ad2697c9c071d8c /libusb/error.h
parent4f6eb6e936a80432270c3e11c43fe0894aed87e9 (diff)
download0xFFFF-cffeb329c4fa3863af83a2ea1dbf53ba01627059.tar.bz2
Remove libusb from tree
Diffstat (limited to 'libusb/error.h')
-rw-r--r--libusb/error.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/libusb/error.h b/libusb/error.h
deleted file mode 100644
index 173e6fd..0000000
--- a/libusb/error.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef _ERROR_H_
-#define _ERROR_H_
-
-typedef enum {
- USB_ERROR_TYPE_NONE = 0,
- USB_ERROR_TYPE_STRING,
- USB_ERROR_TYPE_ERRNO,
-} usb_error_type_t;
-
-extern char usb_error_str[1024];
-extern int usb_error_errno;
-extern usb_error_type_t usb_error_type;
-
-#define USB_ERROR(x) \
- do { \
- usb_error_type = USB_ERROR_TYPE_ERRNO; \
- usb_error_errno = x; \
- return x; \
- } while (0)
-
-#define USB_ERROR_STR(x, format, args...) \
- do { \
- usb_error_type = USB_ERROR_TYPE_STRING; \
- snprintf(usb_error_str, sizeof(usb_error_str) - 1, format, ## args); \
- if (usb_debug >= 2) \
- fprintf(stderr, "USB error: %s\n", usb_error_str); \
- return x; \
- } while (0)
-
-#endif /* _ERROR_H_ */
-