Debian Codegraph @

ChangeLog

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