Blame ChangeLog

Packit 0a8e54
For detailed information about the changes below, please see the git log or
Packit 0a8e54
visit: http://log.libusb.info
Packit 0a8e54
Packit Service 652058
2019-08-28: v1.0.23
Packit Service 652058
* Add German translation (#446)
Packit Service 652058
* Add Hungarian translation (#493)
Packit Service 652058
* Android: Improved support for Android
Packit Service 652058
* BSD: Remove infinite recursion in OpenBSD backend
Packit Service 652058
* configure.ac: Fix detection of clock_gettime library (#439)
Packit Service 652058
* Core: abandon synchronous transfers when device closure is detected.
Packit Service 652058
* Core: fix error in handling the removal of file descriptors while handling
Packit Service 652058
  events.
Packit Service 652058
* Darwin(macOS): Switch from using ResetDevice to USBDeviceReEnumerate (#455)
Packit Service 652058
* Darwin(macOS): Remove code that changed the device class used (#428)
Packit Service 652058
* Darwin(macOS): Reduce hotplug timeout to 1ms (from 5s)
Packit Service 652058
* New API libusb_set_log_cb() to redirect global and per context log
Packit Service 652058
  messages to the provided log handling function
Packit Service 652058
* New API libusb_wrap_sys_device to allow the user to specify the
Packit Service 652058
  usb device to use.
Packit Service 652058
* Solaris: Break infinite recursion in backend clock_gettime
Packit Service 652058
* Solaris: Enable timerfd on sunos when available
Packit Service 652058
* Windows: Add support for isochronous transfers with WinUSB
Packit Service 652058
* Various other bug fixes and improvements
Packit Service 652058
Packit 0a8e54
2018-03-24: v1.0.22:
Packit 0a8e54
* New libusb_set_option() API
Packit 0a8e54
* Fix transfer timeout not being cleared upon resubmission
Packit 0a8e54
* Report super speed plus devices on modern Linux and macOS
Packit 0a8e54
* Darwin: Improve support for macOS Sierra and High Sierra
Packit 0a8e54
* Darwin: SDK fixes and improvements
Packit 0a8e54
* Linux: Let initialization succeed when no devices are present
Packit 0a8e54
* Linux: Mark internal file descriptors with CLOEXEC flag
Packit 0a8e54
* Solaris: Add support for attach/detach kernel driver
Packit 0a8e54
* Windows: Add dynamic UsbDk backend selection
Packit 0a8e54
* Windows: Add isochronous transfer support via libusbK
Packit 0a8e54
* Windows: Add Visual Studio 2017 support
Packit 0a8e54
* Windows: Fix enumeration problems on Windows 8 and later
Packit 0a8e54
* Windows: Major rework of poll() emulation
Packit 0a8e54
* Windows: Numerous HID API fixes
Packit 0a8e54
* Windows: Support cancelation of individual transfers (Vista and later)
Packit 0a8e54
* Various other bug fixes and improvements
Packit 0a8e54
Packit 0a8e54
2016-10-01: v1.0.21:
Packit 0a8e54
* Core: Refactor code related to transfer flags and timeout handling
Packit 0a8e54
* Darwin: Ignore root hub simulation devices
Packit 0a8e54
* Darwin: Improved support for OS X El Capitan
Packit 0a8e54
* Darwin: Work around devices with buggy endpoint descriptors
Packit 0a8e54
* Darwin: Do not use objc_registerThreadWithCollector after its deprecation
Packit 0a8e54
* Darwin: Use C11 atomics on 10.12+ as the OS atomics are now deprecated
Packit 0a8e54
* Linux: Support preallocating kernel memory for zerocopy USB
Packit 0a8e54
* Linux: Deal with receiving POLLERR before all transfers have completed
Packit 0a8e54
* Solaris: Add solaris backend
Packit 0a8e54
* Windows: Add Visual Studio 2015 support
Packit 0a8e54
* Windows: Add usbdk backend
Packit 0a8e54
* Prevent attempts to recursively handle events
Packit 0a8e54
* Fix race condition in handle_timeout()
Packit 0a8e54
* Allow transferred argument to be optional in bulk APIs
Packit 0a8e54
* Various other bug fixes and improvements
Packit 0a8e54
Packit 0a8e54
2015-09-13: v1.0.20
Packit 0a8e54
* Add Haiku support
Packit 0a8e54
* Fix multiple memory and resource leaks (#16, #52, #76, #81)
Packit 0a8e54
* Fix possible deadlock when executing transfer callback
Packit 0a8e54
* New libusb_free_pollfds() API
Packit 0a8e54
* Darwin: Fix devices not being detected on OS X 10.8 (#48)
Packit 0a8e54
* Linux: Allow larger isochronous transfer submission (#23)
Packit 0a8e54
* Windows: Fix broken builds Cygwin/MinGW builds and compiler warnings
Packit 0a8e54
* Windows: Fix broken bus number lookup
Packit 0a8e54
* Windows: Improve submission of control requests for composite devices
Packit 0a8e54
* Examples: Add two-stage load support to fxload (#12)
Packit 0a8e54
* Correctly report cancellations due to timeouts
Packit 0a8e54
* Improve efficiency of event handling
Packit 0a8e54
* Improve speed of transfer submission in multi-threaded environments
Packit 0a8e54
* Various other bug fixes and improvements
Packit 0a8e54
The (#xx) numbers are libusb issue numbers, see ie:
Packit 0a8e54
https://github.com/libusb/libusb/issues/16
Packit 0a8e54
Packit 0a8e54
2014-05-30: v1.0.19
Packit 0a8e54
* Add support for USB bulk streams on Linux and Mac OS X (#11)
Packit 0a8e54
* Windows: Add AMD and Intel USB-3.0 root hub support
Packit 0a8e54
* Windows: Fix USB 3.0 speed detection on Windows 8 or later (#10)
Packit 0a8e54
* Added Russian translation for libusb_strerror strings
Packit 0a8e54
* All: Various small fixes and cleanups
Packit 0a8e54
Packit 0a8e54
2014-01-25: v1.0.18
Packit 0a8e54
* Fix multiple memory leaks
Packit 0a8e54
* Fix a crash when HID transfers return no data on Windows
Packit 0a8e54
* Ensure all pending events are consumed
Packit 0a8e54
* Improve Android and ucLinux support
Packit 0a8e54
* Multiple Windows improvements (error logging, VS2013, VIA xHCI support)
Packit 0a8e54
* Multiple OS X improvements (broken compilation, SIGFPE, 64bit support)
Packit 0a8e54
Packit 0a8e54
2013-09-06: v1.0.17
Packit 0a8e54
* Hotplug callbacks now always get passed a libusb_context, even if it is
Packit 0a8e54
  the default context. Previously NULL would be passed for the default context,
Packit 0a8e54
  but since the first context created is the default context, and most apps
Packit 0a8e54
  use only 1 context, this meant that apps explicitly creating a context would
Packit 0a8e54
  still get passed NULL
Packit 0a8e54
* Android: Add .mk files to build with the Android NDK
Packit 0a8e54
* Darwin: Add Xcode project
Packit 0a8e54
* Darwin: Fix crash on unplug (#121)
Packit 0a8e54
* Linux: Fix hang (deadlock) on libusb_exit
Packit 0a8e54
* Linux: Fix libusb build failure with --disable-udev (#124)
Packit 0a8e54
* Linux: Fix libusb_get_device_list() hang with --disable-udev (#130)
Packit 0a8e54
* OpenBSD: Update OpenBSD backend with support for control transfers to
Packit 0a8e54
  non-ugen(4) devices and make get_configuration() no longer generate I/O.
Packit 0a8e54
  Note that using this libusb version on OpenBSD requires using
Packit 0a8e54
  OpenBSD 5.3-current or later. Users of older OpenBSD versions are advised
Packit 0a8e54
  to stay with the libusb shipped with OpenBSD (mpi)
Packit 0a8e54
* Windows: fix libusb_dll_2010.vcxproj link errors (#129)
Packit 0a8e54
* Various other bug fixes and improvements
Packit 0a8e54
Packit 0a8e54
2013-07-11: v1.0.16
Packit 0a8e54
* Add hotplug support for Darwin and Linux (#9)
Packit 0a8e54
* Add superspeed endpoint companion descriptor support (#15)
Packit 0a8e54
* Add BOS descriptor support (#15)
Packit 0a8e54
* Make descriptor parsing code more robust
Packit 0a8e54
* New libusb_get_port_numbers API, this is libusb_get_port_path without
Packit 0a8e54
  the unnecessary context parameter, libusb_get_port_path is now deprecated
Packit 0a8e54
* New libusb_strerror API (#14)
Packit 0a8e54
* New libusb_set_auto_detach_kernel_driver API (#17)
Packit 0a8e54
* Improve topology API docs (#95)
Packit 0a8e54
* Logging now use a single write call per log-message, avoiding log-message
Packit 0a8e54
  "interlacing" when using multiple threads.
Packit 0a8e54
* Android: use Android logging when building on Android (#101)
Packit 0a8e54
* Darwin: make libusb_reset reenumerate device on descriptors change (#89)
Packit 0a8e54
* Darwin: add support for the LIBUSB_TRANSFER_ADD_ZERO_PACKET flag (#91)
Packit 0a8e54
* Darwin: add a device cache (#112, #114)
Packit 0a8e54
* Examples: Add sam3u_benchmark isochronous example by Harald Welte (#109)
Packit 0a8e54
* Many other bug fixes and improvements
Packit 0a8e54
The (#xx) numbers are libusbx issue numbers, see ie:
Packit 0a8e54
https://github.com/libusbx/libusbx/issues/9
Packit 0a8e54
Packit 0a8e54
2013-04-15: v1.0.15
Packit 0a8e54
* Improve transfer cancellation and avoid short read failures on broken descriptors
Packit 0a8e54
* Filter out 8-bit characters in libusb_get_string_descriptor_ascii()
Packit 0a8e54
* Add WinCE support
Packit 0a8e54
* Add library stress tests
Packit 0a8e54
* Add Cypress FX3 firmware upload support for fxload sample
Packit 0a8e54
* Add HID and kernel driver detach support capabilities detection
Packit 0a8e54
* Add SuperSpeed detection on OS X
Packit 0a8e54
* Fix bInterval value interpretation on OS X
Packit 0a8e54
* Fix issues with autoclaim, composite HID devices, interface autoclaim and
Packit 0a8e54
  early abort in libusb_close() on Windows. Also add VS2012 solution files.
Packit 0a8e54
* Improve fd event handling on Linux
Packit 0a8e54
* Other bug fixes and improvements
Packit 0a8e54
Packit 0a8e54
2012-09-26: v1.0.14
Packit 0a8e54
* Reverts the previous API change with regards to bMaxPower.
Packit 0a8e54
  If this doesn't matter to you, you are encouraged to keep using v1.0.13,
Packit 0a8e54
  as it will use the same attribute as v2.0, to be released soon.
Packit 0a8e54
* Note that LIBUSB_API_VERSION is *decreased* to 0x010000FF and the previous
Packit 0a8e54
  guidelines with regards to concurrent use of MaxPower/bMaxPower still apply.
Packit 0a8e54
Packit 0a8e54
2012-09-20: v1.0.13
Packit 0a8e54
* [MAJOR] Fix a typo in the API with struct libusb_config_descriptor where
Packit 0a8e54
  MaxPower was used instead of bMaxPower, as defined in the specs. If your 
Packit 0a8e54
  application was accessing the MaxPower attribute, and you need to maintain
Packit 0a8e54
  compatibility with libusb or older versions, see APPENDIX A below.
Packit 0a8e54
* Fix broken support for the 0.1 -> 1.0 libusb-compat layer
Packit 0a8e54
* Fix unwanted cancellation of pending timeouts as well as major timeout related bugs
Packit 0a8e54
* Fix handling of HID and composite devices on Windows
Packit 0a8e54
* Introduce LIBUSB_API_VERSION macro
Packit 0a8e54
* Add Cypress FX/FX2 firmware upload sample, based on fxload from
Packit 0a8e54
  http://linux-hotplug.sourceforge.net
Packit 0a8e54
* Add libusb0 (libusb-win32) and libusbK driver support on Windows. Note that while
Packit 0a8e54
  the drivers allow it, isochronous transfers are not supported yet in libusb. Also
Packit 0a8e54
  not supported yet is the use of libusb-win32 filter drivers on composite interfaces
Packit 0a8e54
* Add support for the new get_capabilities ioctl on Linux and avoid unnecessary
Packit 0a8e54
  splitting of bulk transfers
Packit 0a8e54
* Improve support for newer Intel and Renesas USB 3.0 controllers on Windows
Packit 0a8e54
* Harmonize the device number for root hubs across platforms
Packit 0a8e54
* Other bug fixes and improvements
Packit 0a8e54
Packit 0a8e54
2012-06-15: v1.0.12
Packit 0a8e54
* Fix a potential major regression with pthread on Linux
Packit 0a8e54
* Fix missing thread ID from debug log output on cygwin
Packit 0a8e54
* Fix possible crash when using longjmp and MinGW's gcc 4.6
Packit 0a8e54
* Add topology calls: libusb_get_port_number(), libusb_get_parent() & libusb_get_port_path()
Packit 0a8e54
* Add toggleable debug, using libusb_set_debug() or the LIBUSB_DEBUG environment variable
Packit 0a8e54
* Define log levels in libusb.h and set timestamp origin to first libusb_init() call
Packit 0a8e54
* All logging is now sent to to stderr (info was sent to stdout previously)
Packit 0a8e54
* Update log messages severity and avoid polluting log output on OS-X
Packit 0a8e54
* Add HID driver support on Windows
Packit 0a8e54
* Enable interchangeability of MSVC and MinGW DLLs
Packit 0a8e54
* Additional bug fixes and improvements
Packit 0a8e54
Packit 0a8e54
2012-05-08: v1.0.11
Packit 0a8e54
* Revert removal of critical Windows event handling that was introduced in 1.0.10
Packit 0a8e54
* Fix a possible deadlock in Windows when submitting transfers
Packit 0a8e54
* Add timestamped logging
Packit 0a8e54
* Add NetBSD support (experimental) and BSD libusb_get_device_speed() data
Packit 0a8e54
* Add bootstrap.sh alongside autogen.sh (bootstrap.sh doesn't invoke configure)
Packit 0a8e54
* Search for device nodes in /dev for Android support
Packit 0a8e54
* Other bug fixes
Packit 0a8e54
Packit 0a8e54
2012-04-17: v1.0.10
Packit 0a8e54
* Public release
Packit 0a8e54
* Add libusb_get_version
Packit 0a8e54
* Add Visual Studio 2010 project files
Packit 0a8e54
* Some Windows code cleanup
Packit 0a8e54
* Fix xusb sample warnings 
Packit 0a8e54
Packit 0a8e54
2012-04-02: v1.0.9
Packit 0a8e54
* First libusbx release
Packit 0a8e54
* Add libusb_get_device_speed (all, except BSD) and libusb_error_name
Packit 0a8e54
* Add Windows support (WinUSB driver only)
Packit 0a8e54
* Add OpenBSD support
Packit 0a8e54
* Add xusb sample
Packit 0a8e54
* Tons of bug fixes
Packit 0a8e54
Packit 0a8e54
2010-05-07: v1.0.8
Packit 0a8e54
* Bug fixes
Packit 0a8e54
Packit 0a8e54
2010-04-19: v1.0.7
Packit 0a8e54
* Bug fixes and documentation tweaks
Packit 0a8e54
* Add more interface class definitions
Packit 0a8e54
Packit 0a8e54
2009-11-22: v1.0.6
Packit 0a8e54
* Bug fixes
Packit 0a8e54
* Increase libusb_handle_events() timeout to 60s for powersaving
Packit 0a8e54
Packit 0a8e54
2009-11-15: v1.0.5
Packit 0a8e54
 * Use timerfd when available for timer management
Packit 0a8e54
 * Small fixes/updates
Packit 0a8e54
Packit 0a8e54
2009-11-06: v1.0.4 release
Packit 0a8e54
 * Bug fixes including transfer locking to fix some potential threading races
Packit 0a8e54
 * More flexibility with clock types on Linux
Packit 0a8e54
 * Use new bulk continuation tracking in Linux 2.6.32 for improved handling
Packit 0a8e54
   of short/failed transfers
Packit 0a8e54
Packit 0a8e54
2009-08-27: v1.0.3 release
Packit 0a8e54
 * Bug fixes
Packit 0a8e54
 * Add libusb_get_max_iso_packet_size()
Packit 0a8e54
Packit 0a8e54
2009-06-13: v1.0.2 release
Packit 0a8e54
 * Bug fixes
Packit 0a8e54
Packit 0a8e54
2009-05-12: v1.0.1 release
Packit 0a8e54
 * Bug fixes
Packit 0a8e54
 * Darwin backend
Packit 0a8e54
Packit 0a8e54
2008-12-13: v1.0.0 release
Packit 0a8e54
 * Bug fixes
Packit 0a8e54
Packit 0a8e54
2008-11-21: v0.9.4 release
Packit 0a8e54
 * Bug fixes
Packit 0a8e54
 * Add libusb_attach_kernel_driver()
Packit 0a8e54
Packit 0a8e54
2008-08-23: v0.9.3 release
Packit 0a8e54
 * Bug fixes
Packit 0a8e54
Packit 0a8e54
2008-07-19: v0.9.2 release
Packit 0a8e54
 * Bug fixes
Packit 0a8e54
Packit 0a8e54
2008-06-28: v0.9.1 release
Packit 0a8e54
 * Bug fixes
Packit 0a8e54
 * Introduce contexts to the API
Packit 0a8e54
 * Compatibility with new Linux kernel features
Packit 0a8e54
Packit 0a8e54
2008-05-25: v0.9.0 release
Packit 0a8e54
 * First libusb-1.0 beta release
Packit 0a8e54
Packit 0a8e54
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit 0a8e54
Packit 0a8e54
APPENDIX A - How to maintain code compatibility with versions of libusb and
Packit 0a8e54
libusb that use MaxPower:
Packit 0a8e54
Packit 0a8e54
If you must to maintain compatibility with versions of the library that aren't
Packit 0a8e54
using the bMaxPower attribute in struct libusb_config_descriptor, the 
Packit 0a8e54
recommended way is to use the new LIBUSB_API_VERSION macro with an #ifdef.
Packit 0a8e54
For instance, if your code was written as follows:
Packit 0a8e54
Packit 0a8e54
  if (dev->config[0].MaxPower < 250)
Packit 0a8e54
Packit 0a8e54
Then you should modify it to have:
Packit 0a8e54
Packit 0a8e54
#if defined(LIBUSB_API_VERSION) && (LIBUSB_API_VERSION >= 0x01000100)
Packit 0a8e54
  if (dev->config[0].bMaxPower < 250)
Packit 0a8e54
#else
Packit 0a8e54
  if (dev->config[0].MaxPower < 250)
Packit 0a8e54
#endif