From fec8bbc4db4d5f9426450ff19bc0a30294fe8d76 Mon Sep 17 00:00:00 2001 From: Benjamin Dobell Date: Fri, 1 Feb 2013 01:37:44 +1100 Subject: Actually fixed the bug (race condition) in libusbx-1.0 this time! Source available at https://github.com/libusbx/libusbx/pull/79 --- libusbx-1.0/include/libusb.h | 52 ++++----------------------- libusbx-1.0/lib/Win32/Debug/libusb-1.0.dll | Bin 161792 -> 162816 bytes libusbx-1.0/lib/Win32/Debug/libusb-1.0.lib | Bin 34558 -> 34558 bytes libusbx-1.0/lib/Win32/Debug/libusb-1.0.pdb | Bin 478208 -> 486400 bytes libusbx-1.0/lib/Win32/Release/libusb-1.0.dll | Bin 95744 -> 95744 bytes libusbx-1.0/lib/Win32/Release/libusb-1.0.lib | Bin 34558 -> 34558 bytes 6 files changed, 6 insertions(+), 46 deletions(-) diff --git a/libusbx-1.0/include/libusb.h b/libusbx-1.0/include/libusb.h index da94c9b..de31a56 100644 --- a/libusbx-1.0/include/libusb.h +++ b/libusbx-1.0/include/libusb.h @@ -1,9 +1,7 @@ /* * Public libusbx header file - * Copyright © 2001 Johannes Erdfelt * Copyright © 2007-2008 Daniel Drake - * Copyright © 2012 Pete Batard - * For more information, please visit: http://libusbx.org + * Copyright © 2001 Johannes Erdfelt * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -107,31 +105,6 @@ typedef unsigned __int32 uint32_t; #define LIBUSB_CALL #endif -/** \def LIBUSBX_API_VERSION - * \ingroup misc - * libusbx's API version. - * - * Since version 1.0.13, to help with feature detection, libusbx defines - * a LIBUSBX_API_VERSION macro that gets increased every time there is a - * significant change to the API, such as the introduction of a new call, - * the definition of a new macro/enum member, or any other element that - * libusbx applications may want to detect at compilation time. - * - * The macro is typically used in an application as follows: - * \code - * #if defined(LIBUSBX_API_VERSION) && (LIBUSBX_API_VERSION >= 0x01001234) - * // Use one of the newer features from the libusbx API - * #endif - * \endcode - * - * Another feature of LIBUSBX_API_VERSION is that it can be used to detect - * whether you are compiling against the libusb or the libusbx library. - * - * Internally, LIBUSBX_API_VERSION is defined as follows: - * (libusbx major << 24) | (libusbx minor << 16) | (16 bit incremental) - */ -#define LIBUSBX_API_VERSION 0x010000FF - #ifdef __cplusplus extern "C" { #endif @@ -258,9 +231,6 @@ enum libusb_descriptor_type { /** Hub descriptor */ LIBUSB_DT_HUB = 0x29, - - /** SuperSpeed Hub descriptor */ - LIBUSB_DT_SUPERSPEED_HUB = 0x2A, }; /* Descriptor sizes per descriptor type */ @@ -307,7 +277,7 @@ enum libusb_transfer_type { }; /** \ingroup misc - * Standard requests, as defined in table 9-5 of the USB 3.0 specifications */ + * Standard requests, as defined in table 9-3 of the USB2 specifications */ enum libusb_standard_request { /** Request status of the specific recipient */ LIBUSB_REQUEST_GET_STATUS = 0x00, @@ -345,13 +315,6 @@ enum libusb_standard_request { /** Set then report an endpoint's synchronization frame */ LIBUSB_REQUEST_SYNCH_FRAME = 0x0C, - - /** Sets both the U1 and U2 Exit Latency */ - LIBUSB_REQUEST_SET_SEL = 0x30, - - /** Delay from the time a host transmits a packet to the time it is - * received by the device. */ - LIBUSB_SET_ISOCH_DELAY = 0x31, }; /** \ingroup misc @@ -431,7 +394,7 @@ enum libusb_iso_usage_type { /** \ingroup desc * A structure representing the standard USB device descriptor. This - * descriptor is documented in section 9.6.1 of the USB 3.0 specification. + * descriptor is documented in section 9.6.1 of the USB 2.0 specification. * All multiple-byte fields are represented in host-endian format. */ struct libusb_device_descriptor { @@ -485,7 +448,7 @@ struct libusb_device_descriptor { /** \ingroup desc * A structure representing the standard USB endpoint descriptor. This - * descriptor is documented in section 9.6.6 of the USB 3.0 specification. + * descriptor is documented in section 9.6.3 of the USB 2.0 specification. * All multiple-byte fields are represented in host-endian format. */ struct libusb_endpoint_descriptor { @@ -535,7 +498,7 @@ struct libusb_endpoint_descriptor { /** \ingroup desc * A structure representing the standard USB interface descriptor. This - * descriptor is documented in section 9.6.5 of the USB 3.0 specification. + * descriptor is documented in section 9.6.5 of the USB 2.0 specification. * All multiple-byte fields are represented in host-endian format. */ struct libusb_interface_descriptor { @@ -597,7 +560,7 @@ struct libusb_interface { /** \ingroup desc * A structure representing the standard USB configuration descriptor. This - * descriptor is documented in section 9.6.3 of the USB 3.0 specification. + * descriptor is documented in section 9.6.3 of the USB 2.0 specification. * All multiple-byte fields are represented in host-endian format. */ struct libusb_config_descriptor { @@ -845,9 +808,6 @@ enum libusb_transfer_status { /** Device sent more data than requested */ LIBUSB_TRANSFER_OVERFLOW, - - /* NB! Remember to update libusb_error_name() - when adding new status codes here. */ }; /** \ingroup asyncio diff --git a/libusbx-1.0/lib/Win32/Debug/libusb-1.0.dll b/libusbx-1.0/lib/Win32/Debug/libusb-1.0.dll index 9dc1fce..a0dea62 100644 Binary files a/libusbx-1.0/lib/Win32/Debug/libusb-1.0.dll and b/libusbx-1.0/lib/Win32/Debug/libusb-1.0.dll differ diff --git a/libusbx-1.0/lib/Win32/Debug/libusb-1.0.lib b/libusbx-1.0/lib/Win32/Debug/libusb-1.0.lib index f29e311..8425462 100644 Binary files a/libusbx-1.0/lib/Win32/Debug/libusb-1.0.lib and b/libusbx-1.0/lib/Win32/Debug/libusb-1.0.lib differ diff --git a/libusbx-1.0/lib/Win32/Debug/libusb-1.0.pdb b/libusbx-1.0/lib/Win32/Debug/libusb-1.0.pdb index 9d25753..21907c0 100644 Binary files a/libusbx-1.0/lib/Win32/Debug/libusb-1.0.pdb and b/libusbx-1.0/lib/Win32/Debug/libusb-1.0.pdb differ diff --git a/libusbx-1.0/lib/Win32/Release/libusb-1.0.dll b/libusbx-1.0/lib/Win32/Release/libusb-1.0.dll index 9f34df0..7d5dfa1 100644 Binary files a/libusbx-1.0/lib/Win32/Release/libusb-1.0.dll and b/libusbx-1.0/lib/Win32/Release/libusb-1.0.dll differ diff --git a/libusbx-1.0/lib/Win32/Release/libusb-1.0.lib b/libusbx-1.0/lib/Win32/Release/libusb-1.0.lib index 6bbdf84..70a4aee 100644 Binary files a/libusbx-1.0/lib/Win32/Release/libusb-1.0.lib and b/libusbx-1.0/lib/Win32/Release/libusb-1.0.lib differ -- cgit v1.2.3