windows: Restore behaviour of skipping malformed device GUIDs
[libusb.git] / ChangeLog
blob3db5baa9a74862d7c70045bb7553f56a89773a0e
1 For detailed information about the changes below, please see the git log
2 or visit: http://log.libusb.info
4 2024-01-31: v1.0.27
5 * New libusb_init_context API to replace libusb_init
6 * New libusb_get_max_alt_packet_size API
7 * New libusb_get_platform_descriptor API (BOS)
8 * Allow setting log callback with libusb_set_option/libusb_init_context
9 * New WebAssembly + WebUSB backend using Emscripten
10 * Fix regression in libusb_set_interface_alt_setting
11 * Fix sync transfer completion race and use-after-free
12 * Fix hotplug exit ordering
13 * Linux: NO_DEVICE_DISCOVERY option set per context
14 * macOS: Fix missing device list cleanup locking
15 * macOS: Do not clear device data toggle for newer OS versions
16 * macOS: Fix running binaries on older OS than build host
17 * Windows: Allow claiming multiple associated interfaces
18 * Windows: Ignore non-configured devices instead of waiting
19 * Windows: Improved root hub detection
21 2022-04-10: v1.0.26
22 * Fix regression with transfer free's after closing device
23 * Fix regression with destroyed context if API is misused
24 * Workaround for applications using missing default context
25 * Fix hotplog enumeration regression
26 * Fix Windows isochronous transfer regression since 1.0.24
27 * Fix macOS exit crash in some multi-context cases
28 * Build fixes for various platforms and configurations
29 * Fix Windows HID multi-interface product string retrieval
30 * Update isochronous OUT packet actual lengths on Windows
31 * Add interface bound checking for broken devices
32 * Add umockdev tests on Linux
34 2022-01-31: v1.0.25
35 * Linux: Fix regression with some particular devices
36 * Linux: Fix regression with libusb_handle_events_timeout_completed()
37 * Linux: Fix regression with cpu usage in libusb_bulk_transfer
38 * Darwin (macOS): Add support for detaching kernel drivers with authorization.
39 * Darwin (macOS): Do not drop partial data on timeout.
40 * Darwin (macOS): Silence pipe error in set_interface_alt_setting().
41 * Windows: Fix HID backend missing byte
42 * Windows: Fix segfault with libusbk driver
43 * Windows: Fix regression when using libusb0 driver
44 * Windows: Support LIBUSB_TRANSFER_ADD_ZERO_PACKET on winusb
45 * New NO_DEVICE_DISCOVERY option replaces WEAK_AUTHORITY option
46 * Various other bug fixes and improvements
48 2020-12-09: v1.0.24
49 * Add new platform abstraction (#252)
50 * Add Null POSIX backend
51 * Add support for eventfd
52 * Add support for thread IDs on Haiku, NetBSD and Solaris
53 * New API libusb_hotplug_get_user_data()
54 * Darwin (macOS): Fix race condition that results in segmentation fault (#701)
55 * Darwin (macOS): Fix stale descriptor information post reset (#733)
56 * Darwin (macOS): use IOUSBDevice as darwin_device_class explicitly (#693)
57 * Linux: Drop support for kernel older than 2.6.32
58 * Linux: Provide an event thread name (#689)
59 * Linux: Wait until all URBs have been reaped before freeing them (#607)
60 * NetBSD: Recognize device timeouts (#710)
61 * OpenBSD: Allow opening ugen devices multiple times (#763)
62 * OpenBSD: Support libusb_get_port_number() (#764)
63 * SunOS: Fix a memory leak (#756)
64 * SunOS: Various fixes (#627, #628, #629)
65 * Windows: Add Visual Studio 2019 support
66 * Windows: Drop support for WinCE and Visual Studio older than 2013
67 * Windows: Drop support for Windows XP
68 * Windows: Support building all examples using Visual Studio (#151)
69 * Documentation fixes and improvements
70 * Various other bug fixes and improvements
72 2019-08-28: v1.0.23
73 * Add German translation (#446)
74 * Add Hungarian translation (#493)
75 * Android: Improved support for Android
76 * BSD: Remove infinite recursion in OpenBSD backend
77 * configure.ac: Fix detection of clock_gettime library (#439)
78 * Core: abandon synchronous transfers when device closure is detected.
79 * Core: fix error in handling the removal of file descriptors while handling
80   events.
81 * Darwin(macOS): Switch from using ResetDevice to USBDeviceReEnumerate (#455)
82 * Darwin(macOS): Remove code that changed the device class used (#428)
83 * Darwin(macOS): Reduce hotplug timeout to 1ms (from 5s)
84 * New API libusb_set_log_cb() to redirect global and per context log
85   messages to the provided log handling function
86 * New API libusb_wrap_sys_device to allow the user to specify the
87   usb device to use.
88 * Solaris: Break infinite recursion in backend clock_gettime
89 * Solaris: Enable timerfd on sunos when available
90 * Windows: Add support for isochronous transfers with WinUSB
91 * Various other bug fixes and improvements
93 2018-03-24: v1.0.22
94 * New libusb_set_option() API
95 * Fix transfer timeout not being cleared upon resubmission
96 * Report super speed plus devices on modern Linux and macOS
97 * Darwin: Improve support for macOS Sierra and High Sierra
98 * Darwin: SDK fixes and improvements
99 * Linux: Let initialization succeed when no devices are present
100 * Linux: Mark internal file descriptors with CLOEXEC flag
101 * Solaris: Add support for attach/detach kernel driver
102 * Windows: Add dynamic UsbDk backend selection
103 * Windows: Add isochronous transfer support via libusbK
104 * Windows: Add Visual Studio 2017 support
105 * Windows: Fix enumeration problems on Windows 8 and later
106 * Windows: Major rework of poll() emulation
107 * Windows: Numerous HID API fixes
108 * Windows: Support cancellation of individual transfers (Vista and later)
109 * Various other bug fixes and improvements
111 2016-10-01: v1.0.21
112 * Core: Refactor code related to transfer flags and timeout handling
113 * Darwin: Ignore root hub simulation devices
114 * Darwin: Improved support for OS X El Capitan
115 * Darwin: Work around devices with buggy endpoint descriptors
116 * Darwin: Do not use objc_registerThreadWithCollector after its deprecation
117 * Darwin: Use C11 atomics on 10.12+ as the OS atomics are now deprecated
118 * Linux: Support preallocating kernel memory for zerocopy USB
119 * Linux: Deal with receiving POLLERR before all transfers have completed
120 * Solaris: Add solaris backend
121 * Windows: Add Visual Studio 2015 support
122 * Windows: Add usbdk backend
123 * Prevent attempts to recursively handle events
124 * Fix race condition in handle_timeout()
125 * Allow transferred argument to be optional in bulk APIs
126 * Various other bug fixes and improvements
128 2015-09-13: v1.0.20
129 * Add Haiku support
130 * Fix multiple memory and resource leaks (#16, #52, #76, #81)
131 * Fix possible deadlock when executing transfer callback
132 * New libusb_free_pollfds() API
133 * Darwin: Fix devices not being detected on OS X 10.8 (#48)
134 * Linux: Allow larger isochronous transfer submission (#23)
135 * Windows: Fix broken builds Cygwin/MinGW builds and compiler warnings
136 * Windows: Fix broken bus number lookup
137 * Windows: Improve submission of control requests for composite devices
138 * Examples: Add two-stage load support to fxload (#12)
139 * Correctly report cancellations due to timeouts
140 * Improve efficiency of event handling
141 * Improve speed of transfer submission in multi-threaded environments
142 * Various other bug fixes and improvements
143 The (#xx) numbers are libusb issue numbers, see ie:
144 https://github.com/libusb/libusb/issues/16
146 2014-05-30: v1.0.19
147 * Add support for USB bulk streams on Linux and Mac OS X (#11)
148 * Windows: Add AMD and Intel USB-3.0 root hub support
149 * Windows: Fix USB 3.0 speed detection on Windows 8 or later (#10)
150 * Added Russian translation for libusb_strerror strings
151 * All: Various small fixes and cleanups
153 2014-01-25: v1.0.18
154 * Fix multiple memory leaks
155 * Fix a crash when HID transfers return no data on Windows
156 * Ensure all pending events are consumed
157 * Improve Android and ucLinux support
158 * Multiple Windows improvements (error logging, VS2013, VIA xHCI support)
159 * Multiple OS X improvements (broken compilation, SIGFPE, 64bit support)
161 2013-09-06: v1.0.17
162 * Hotplug callbacks now always get passed a libusb_context, even if it is
163   the default context. Previously NULL would be passed for the default context,
164   but since the first context created is the default context, and most apps
165   use only 1 context, this meant that apps explicitly creating a context would
166   still get passed NULL
167 * Android: Add .mk files to build with the Android NDK
168 * Darwin: Add Xcode project
169 * Darwin: Fix crash on unplug (#121)
170 * Linux: Fix hang (deadlock) on libusb_exit
171 * Linux: Fix libusb build failure with --disable-udev (#124)
172 * Linux: Fix libusb_get_device_list() hang with --disable-udev (#130)
173 * OpenBSD: Update OpenBSD backend with support for control transfers to
174   non-ugen(4) devices and make get_configuration() no longer generate I/O.
175   Note that using this libusb version on OpenBSD requires using
176   OpenBSD 5.3-current or later. Users of older OpenBSD versions are advised
177   to stay with the libusb shipped with OpenBSD (mpi)
178 * Windows: fix libusb_dll_2010.vcxproj link errors (#129)
179 * Various other bug fixes and improvements
181 2013-07-11: v1.0.16
182 * Add hotplug support for Darwin and Linux (#9)
183 * Add superspeed endpoint companion descriptor support (#15)
184 * Add BOS descriptor support (#15)
185 * Make descriptor parsing code more robust
186 * New libusb_get_port_numbers API, this is libusb_get_port_path without
187   the unnecessary context parameter, libusb_get_port_path is now deprecated
188 * New libusb_strerror API (#14)
189 * New libusb_set_auto_detach_kernel_driver API (#17)
190 * Improve topology API docs (#95)
191 * Logging now use a single write call per log-message, avoiding log-message
192   "interlacing" when using multiple threads.
193 * Android: use Android logging when building on Android (#101)
194 * Darwin: make libusb_reset reenumerate device on descriptors change (#89)
195 * Darwin: add support for the LIBUSB_TRANSFER_ADD_ZERO_PACKET flag (#91)
196 * Darwin: add a device cache (#112, #114)
197 * Examples: Add sam3u_benchmark isochronous example by Harald Welte (#109)
198 * Many other bug fixes and improvements
199 The (#xx) numbers are libusbx issue numbers, see ie:
200 https://github.com/libusbx/libusbx/issues/9
202 2013-04-15: v1.0.15
203 * Improve transfer cancellation and avoid short read failures on broken descriptors
204 * Filter out 8-bit characters in libusb_get_string_descriptor_ascii()
205 * Add WinCE support
206 * Add library stress tests
207 * Add Cypress FX3 firmware upload support for fxload sample
208 * Add HID and kernel driver detach support capabilities detection
209 * Add SuperSpeed detection on OS X
210 * Fix bInterval value interpretation on OS X
211 * Fix issues with autoclaim, composite HID devices, interface autoclaim and
212   early abort in libusb_close() on Windows. Also add VS2012 solution files.
213 * Improve fd event handling on Linux
214 * Other bug fixes and improvements
216 2012-09-26: v1.0.14
217 * Reverts the previous API change with regards to bMaxPower.
218   If this doesn't matter to you, you are encouraged to keep using v1.0.13,
219   as it will use the same attribute as v2.0, to be released soon.
220 * Note that LIBUSB_API_VERSION is *decreased* to 0x010000FF and the previous
221   guidelines with regards to concurrent use of MaxPower/bMaxPower still apply.
223 2012-09-20: v1.0.13
224 * [MAJOR] Fix a typo in the API with struct libusb_config_descriptor where
225   MaxPower was used instead of bMaxPower, as defined in the specs. If your 
226   application was accessing the MaxPower attribute, and you need to maintain
227   compatibility with libusb or older versions, see APPENDIX A below.
228 * Fix broken support for the 0.1 -> 1.0 libusb-compat layer
229 * Fix unwanted cancellation of pending timeouts as well as major timeout related bugs
230 * Fix handling of HID and composite devices on Windows
231 * Introduce LIBUSB_API_VERSION macro
232 * Add Cypress FX/FX2 firmware upload sample, based on fxload from
233   http://linux-hotplug.sourceforge.net
234 * Add libusb0 (libusb-win32) and libusbK driver support on Windows. Note that while
235   the drivers allow it, isochronous transfers are not supported yet in libusb. Also
236   not supported yet is the use of libusb-win32 filter drivers on composite interfaces
237 * Add support for the new get_capabilities ioctl on Linux and avoid unnecessary
238   splitting of bulk transfers
239 * Improve support for newer Intel and Renesas USB 3.0 controllers on Windows
240 * Harmonize the device number for root hubs across platforms
241 * Other bug fixes and improvements
243 2012-06-15: v1.0.12
244 * Fix a potential major regression with pthread on Linux
245 * Fix missing thread ID from debug log output on cygwin
246 * Fix possible crash when using longjmp and MinGW's gcc 4.6
247 * Add topology calls: libusb_get_port_number(), libusb_get_parent() & libusb_get_port_path()
248 * Add toggleable debug, using libusb_set_debug() or the LIBUSB_DEBUG environment variable
249 * Define log levels in libusb.h and set timestamp origin to first libusb_init() call
250 * All logging is now sent to to stderr (info was sent to stdout previously)
251 * Update log messages severity and avoid polluting log output on OS-X
252 * Add HID driver support on Windows
253 * Enable interchangeability of MSVC and MinGW DLLs
254 * Additional bug fixes and improvements
256 2012-05-08: v1.0.11
257 * Revert removal of critical Windows event handling that was introduced in 1.0.10
258 * Fix a possible deadlock in Windows when submitting transfers
259 * Add timestamped logging
260 * Add NetBSD support (experimental) and BSD libusb_get_device_speed() data
261 * Add bootstrap.sh alongside autogen.sh (bootstrap.sh doesn't invoke configure)
262 * Search for device nodes in /dev for Android support
263 * Other bug fixes
265 2012-04-17: v1.0.10
266 * Public release
267 * Add libusb_get_version
268 * Add Visual Studio 2010 project files
269 * Some Windows code cleanup
270 * Fix xusb sample warnings 
272 2012-04-02: v1.0.9
273 * First libusbx release
274 * Add libusb_get_device_speed (all, except BSD) and libusb_error_name
275 * Add Windows support (WinUSB driver only)
276 * Add OpenBSD support
277 * Add xusb sample
278 * Tons of bug fixes
280 2010-05-07: v1.0.8
281 * Bug fixes
283 2010-04-19: v1.0.7
284 * Bug fixes and documentation tweaks
285 * Add more interface class definitions
287 2009-11-22: v1.0.6
288 * Bug fixes
289 * Increase libusb_handle_events() timeout to 60s for powersaving
291 2009-11-15: v1.0.5
292  * Use timerfd when available for timer management
293  * Small fixes/updates
295 2009-11-06: v1.0.4 release
296  * Bug fixes including transfer locking to fix some potential threading races
297  * More flexibility with clock types on Linux
298  * Use new bulk continuation tracking in Linux 2.6.32 for improved handling
299    of short/failed transfers
301 2009-08-27: v1.0.3 release
302  * Bug fixes
303  * Add libusb_get_max_iso_packet_size()
305 2009-06-13: v1.0.2 release
306  * Bug fixes
308 2009-05-12: v1.0.1 release
309  * Bug fixes
310  * Darwin backend
312 2008-12-13: v1.0.0 release
313  * Bug fixes
315 2008-11-21: v0.9.4 release
316  * Bug fixes
317  * Add libusb_attach_kernel_driver()
319 2008-08-23: v0.9.3 release
320  * Bug fixes
322 2008-07-19: v0.9.2 release
323  * Bug fixes
325 2008-06-28: v0.9.1 release
326  * Bug fixes
327  * Introduce contexts to the API
328  * Compatibility with new Linux kernel features
330 2008-05-25: v0.9.0 release
331  * First libusb-1.0 beta release
333 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
335 APPENDIX A - How to maintain code compatibility with versions of libusb and
336 libusb that use MaxPower:
338 If you must to maintain compatibility with versions of the library that aren't
339 using the bMaxPower attribute in struct libusb_config_descriptor, the 
340 recommended way is to use the new LIBUSB_API_VERSION macro with an #ifdef.
341 For instance, if your code was written as follows:
343   if (dev->config[0].MaxPower < 250)
345 Then you should modify it to have:
347 #if defined(LIBUSB_API_VERSION) && (LIBUSB_API_VERSION >= 0x01000100)
348   if (dev->config[0].bMaxPower < 250)
349 #else
350   if (dev->config[0].MaxPower < 250)
351 #endif