summaryrefslogtreecommitdiffstats
path: root/src/usb-device.h
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2016-12-06 22:39:44 +0100
committerPali Rohár <pali.rohar@gmail.com>2016-12-06 22:39:44 +0100
commit676da477510cb1966a74273f89c8aa64654a1d49 (patch)
tree6b494e6129e9908f5e7ad33290f92f257560dd2d /src/usb-device.h
parentea7f2a441a68bc4496733a2fcabc6bf8d2962d04 (diff)
download0xFFFF-676da477510cb1966a74273f89c8aa64654a1d49.tar.bz2
all: Revert libusb-1.0 support
Listing of usb devices with libusb-1.0 is too slow and not usable for flashing or cold-flashing Nokia N900. Old libusb (0.1) does not have this problem and works perfectly. Problem for libusb-1.0 was reported at least two times into libusb-devel mailing list, but upstream developers are totally ignore it. One message is in archive: https://sourceforge.net/p/libusb/mailman/message/34985373/ Because of that there is just one option: use tested and working libusb 0.1 library instead some experimental and non-working libusb-1.0.
Diffstat (limited to 'src/usb-device.h')
-rw-r--r--src/usb-device.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/usb-device.h b/src/usb-device.h
index 910a8c9..101fbcd 100644
--- a/src/usb-device.h
+++ b/src/usb-device.h
@@ -20,11 +20,11 @@
#ifndef USB_DEVICE_H
#define USB_DEVICE_H
-#include <libusb-1.0/libusb.h>
+#include <usb.h>
-#define USB_READ_EP (LIBUSB_ENDPOINT_IN | 0x1)
-#define USB_WRITE_EP (LIBUSB_ENDPOINT_OUT | 0x1)
-#define USB_WRITE_DATA_EP (LIBUSB_ENDPOINT_OUT | 0x2)
+#define USB_READ_EP (USB_ENDPOINT_IN | 0x1)
+#define USB_WRITE_EP (USB_ENDPOINT_OUT | 0x1)
+#define USB_WRITE_DATA_EP (USB_ENDPOINT_OUT | 0x2)
#include "device.h"
@@ -51,7 +51,7 @@ struct usb_device_info {
enum device device;
int16_t hwrev;
const struct usb_flash_device * flash_device;
- libusb_device_handle * udev;
+ usb_dev_handle * udev;
int data;
};