summaryrefslogtreecommitdiff
path: root/libusb/version.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Samples: Use a common LDADD for all examplesLudovic Rousseau2012-05-101-1/+1
| | | | * Similar to libusb patch a129732fb45fc424743f26f01c906e4514f11521
* Samples: prefer __linux__ over __linux define in xusbPete Batard2012-05-101-1/+1
| | | | | | * While both should work, __linux__ seems to be preferred and what we use in threads_posix.c * Also fix a typo in .private/README.txt
* libusbx-1.0.11v1.0.11Pete Batard2012-05-081-2/+2
|
* Darwin: Sync type of num_iso_packets fieldsLudovic Rousseau2012-05-081-1/+1
| | | | | | | | | * num_iso_packets was a "size_t" in "struct darwin_transfer_priv" and an "int" in "struct libusb_transfer". The field is now an int in the two structures * Fixes warning os/darwin_usb.c: In function ‘submit_iso_transfer’: os/darwin_usb.c:1334: warning: comparison between signed and unsigned
* Core: Handle TRANSFER_ERROR/TRANSFER_CANCELLED for sync transfersLudovic Rousseau2012-05-081-1/+1
| | | | | | | | | * Return the more appropriate LIBUSB_ERROR_IO instead of LIBUSB_ERROR_OTHER for the cases LIBUSB_TRANSFER_ERROR and LIBUSB_TRANSFER_CANCELLED * Fixes warnings similar to the following when using the GCC option -Wswitch-enum: warning: enumeration value ‘LIBUSB_TRANSFER_ERROR’ not handled in switch
* BSD: Add thread ID support for OpenBSD > 5.1Pete Batard2012-05-081-1/+1
| | | | | | * Uses syscall(SYS_getthrid) which requires real thread support, currently only available in 5.1-current (but not 5.1-release). For OpenBSD <= 5.1, -1 will be returned for the thread ID.
* Samples: fix strcat vs strlcat warning on OpenBSDPete Batard2012-05-081-1/+1
| | | | | * Without this, OpenBSD produces the following warning: strcat() is almost always misused, please use strlcat()
* libusbx 1.0.11-rc1v1.0.11-rc1Pete Batard2012-05-071-3/+3
|
* Core: Add a timestamping and thread ID to loggingPeter Stuge2012-05-061-1/+1
|
* Autotools: Use "$@" instead of $* to avoid spaces problemsLudovic Rousseau2012-05-041-1/+1
| | | | * "$@" will correctly handle arguments with spaces
* Autotools: Use "set -e" to exit on the first errorLudovic Rousseau2012-05-041-1/+1
| | | | * The script will not continue if something fails (like a command not found)
* Autotools: Do not use source to call an another scriptLudovic Rousseau2012-05-041-1/+1
| | | | | | * Script is valid for bash but not any /bin/sh * Thanks to Xiaofan Chen for the bug report http://sourceforge.net/mailarchive/message.php?msg_id=29217871
* Windows: Fix deadlock in backend when submitting transfers.Toby Gray2012-05-031-1/+1
| | | | | | | | | | | | | | | | | | | | | Without this change the Windows backend needed to call usbi_fd_notification() from within the backend's submit_transfer. This can cause deadlock when attempting to lock the event lock if another thread was processing events on the just-submitted transfer. The deadlock comes about as the thread calling libusb_submit_transfer acquires the transfer mutex before trying to acquire the event lock; this is the other order of lock acquisition from an event thread handling activity on the just submitted transfer. This could lead to one of two deadlocks: 1) If the transfer completes while usbi_fd_notification() is waiting for the event lock and the callback attempts to resubmit the transfer. 2) If the transfer timeout is hit while usbi_fd_notification() is waiting for the event lock then the attempt to cancel the transfer will deadlock. This patch fixes both of these deadlocks by having libusb_submit_transfer() only call usbi_fd_notification() after having released the transfer mutex.
* Samples: Remove interface requests when querying WCID devicesPete Batard2012-05-021-1/+1
| | | | | | * As per MS documentation, querying of the Extended Properties is a device request (0xC0), not an interface one (0xC1), so there is no issue with the WinUSB wIndex override.
* Autotools: Add bootstrap.shPete Batard2012-05-021-1/+1
| | | | | bootstrap.sh does not invoke configure whereas autogen.sh does. This allows libusbx users to choose the one that suits them best.
* Windows: Fix removal of usbi_fd_notification calls in submit_*_transferUri Lublin2012-05-011-1/+1
| | | | | Commit 4cccbed825fe1dc13812 accidentally removed those calls, when ! ifdef DYNAMIC_FDS blocks were removed.
* Core: update version struct for ABI compatibilityPete Batard2012-04-261-1/+1
| | | | | * Adds a static string for describe * Also update version documentation
* Linux: Search for /dev/usbdev<bus>.<device> USB device special filesJames Hanko2012-04-221-1/+1
| | | | | | | If neither the (now deprecated) usbfs filesystem nor udev is available then libusbx searches for device nodes also in /dev where they may be created if the kernel was built with the option CONFIG_USB_DEVICE_CLASS. This helps on embedded systems such as Android, and all mdev users.
* BSD: Provide libusb_get_device_speed() dataMartin Pieuchot2012-04-201-1/+1
| | | | | | Because the different speed values used by the libusb and OpenBSD's usb_device_info structure are compatible, keep the code simple and just copy the value returned by the USB_GET_DEVICEINFO ioctl() call.
* Samples: Fix not handled in switch warning in xusb.cLudovic Rousseau2012-04-201-1/+1
| | | | | xusb.c: In function ‘test_device’: xusb.c:722:2: warning: enumeration value ‘USE_GENERIC’ not handled in switch [-Wswitch-enum]
* Samples: Remove unneeded inline in xusb.cLudovic Rousseau2012-04-201-1/+1
| | | | | | Fixes: warning: function ‘perr’ can never be inlined because it uses variable argument lists [-Winline] warning: inlining failed in call to ‘perr’: function not inlinable [-Winline]
* Linux: Fix signed vs unsigned compiler warningsLudovic Rousseau2012-04-201-1/+1
| | | | os/linux_usbfs.c: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
* Linux: Silence unused variable warnings without CLOCK_MONOTONICXiaofan Chen2012-04-201-1/+1
|
* Core: Add debug message with callback address on completed transferPeter Stuge2012-04-201-1/+1
|
* BSD: add NetBSD experimental supportPete Batard2012-04-191-1/+1
| | | | | * also improve OS/backend selection in configure.ac * original libusb patches from Peter Stuge and Xiaofan Chen
* libusbx-1.0.10v1.0.10Pete Batard2012-04-171-2/+2
|
* Samples: Fix initialization discards qualifiers warnings in xusb.cLudovic Rousseau2012-04-151-1/+1
| | | | | | | | | | | | xusb.c: In function ‘read_ms_winsub_feature_descriptors’: xusb.c:542: warning: initialization discards qualifiers from pointer target type xusb.c:543: warning: initialization discards qualifiers from pointer target type xusb.c: In function ‘test_device’: xusb.c:598: warning: initialization discards qualifiers from pointer target type xusb.c:598: warning: initialization discards qualifiers from pointer target type xusb.c:598: warning: initialization discards qualifiers from pointer target type xusb.c:599: warning: initialization discards qualifiers from pointer target type xusb.c:599: warning: initialization discards qualifiers from pointer target type
* Samples: Fix no previous prototype warnings in xusb.cLudovic Rousseau2012-04-151-1/+1
| | | | | | | | | | | | | xusb.c:139: warning: no previous prototype for ‘display_buffer_hex’ xusb.c:169: warning: no previous prototype for ‘display_ps3_status’ xusb.c:260: warning: no previous prototype for ‘display_xbox_status’ xusb.c:281: warning: no previous prototype for ‘set_xbox_actuators’ xusb.c:299: warning: no previous prototype for ‘send_mass_storage_command’ xusb.c:354: warning: no previous prototype for ‘get_mass_storage_status’ xusb.c:401: warning: no previous prototype for ‘get_sense’ xusb.c:431: warning: no previous prototype for ‘test_mass_storage’ xusb.c:530: warning: no previous prototype for ‘read_ms_winsub_feature_descriptors’ xusb.c:583: warning: no previous prototype for ‘test_device’
* Misc: Add a missing newline at end of .private/README.txtLudovic Rousseau2012-04-151-1/+1
|
* libusbx 1.0.10-rc1v1.0.10-rc1Pete Batard2012-04-131-3/+3
|
* Windows: add internal binary snapshot scriptsPete Batard2012-04-121-1/+1
|
* Git: add pre-commit and post-rewrite hooks for versioningPete Batard2012-04-111-2/+1
| | | | * Also adds the maintainer-only .private directory
* libusbx 1.0.9v1.0.9Pete Batard2012-04-021-1/+1
| | | | * Also updated AUTHORS and THANKS
* libusbx 1.0.9-rc5v1.0.9-rc5Pete Batard2012-03-311-1/+1
|
* libusbx 1.0.9-rc4v1.0.9-rc4Pete Batard2012-03-291-2/+2
|
* Support release candidate versions in configure.ac and libusb-1.0.rcPeter Stuge2011-10-171-0/+4
|
* Move library version number from configure.ac to libusb/version.hPeter Stuge2011-06-131-0/+14
This is neccessary to support native MS builds. The Windows resource file libusb/libusb-1.0.rc must include the release version, which was previously only available after configure had run and had substituted the numbers into a generated libusb/libusb-1.0.rc file. The version atoms are now stored as CPP style #defines in libusb/version.h so that the .rc no longer needs to be generated but can simply include the header file and access the version information directly. The m4 macro LU_DEFINE_VERSION_ATOM() was added to configure.ac to get version atoms from libusb/version.h for use in AC_INIT(). The macro handles C and C++ style comments in version.h, but can easily be made to fail by obscuring the file. Please don't do that. Tested with MinGW using autoconf, and manual compile of libusb-1.0.rc using RC.EXE Version 5.2.3690.0 from Visual C++ 2005 Express Edition.