summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libusbx-1.0.11v1.0.11Pete Batard2012-05-082-3/+3
|
* Darwin: Sync type of num_iso_packets fieldsLudovic Rousseau2012-05-082-2/+2
| | | | | | | | | * 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-082-1/+9
| | | | | | | | | * 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-082-3/+7
| | | | | | * 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-082-3/+2
| | | | | * 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-073-3/+15
|
* Core: Add a timestamping and thread ID to loggingPeter Stuge2012-05-068-2/+110
|
* Autotools: Use "$@" instead of $* to avoid spaces problemsLudovic Rousseau2012-05-042-2/+2
| | | | * "$@" will correctly handle arguments with spaces
* Autotools: Use "set -e" to exit on the first errorLudovic Rousseau2012-05-043-1/+6
| | | | * 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-042-2/+2
| | | | | | * 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-034-4/+11
| | | | | | | | | | | | | | | | | | | | | 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-022-11/+4
| | | | | | * 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-023-17/+19
| | | | | 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-012-1/+4
| | | | | Commit 4cccbed825fe1dc13812 accidentally removed those calls, when ! ifdef DYNAMIC_FDS blocks were removed.
* Core: update version struct for ABI compatibilityPete Batard2012-04-263-9/+23
| | | | | * Adds a static string for describe * Also update version documentation
* Linux: Search for /dev/usbdev<bus>.<device> USB device special filesJames Hanko2012-04-222-12/+71
| | | | | | | 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-202-1/+2
| | | | | | 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-202-2/+2
| | | | | 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-202-2/+2
| | | | | | 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-202-5/+5
| | | | os/linux_usbfs.c: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
* Linux: Silence unused variable warnings without CLOCK_MONOTONICXiaofan Chen2012-04-202-2/+2
|
* Core: Add debug message with callback address on completed transferPeter Stuge2012-04-202-1/+2
|
* BSD: add NetBSD experimental supportPete Batard2012-04-193-28/+45
| | | | | * 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-173-4/+6
|
* Samples: Fix initialization discards qualifiers warnings in xusb.cLudovic Rousseau2012-04-152-3/+3
| | | | | | | | | | | | 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-152-11/+11
| | | | | | | | | | | | | 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-152-2/+2
|
* libusbx 1.0.10-rc1v1.0.10-rc1Pete Batard2012-04-132-3/+9
|
* Windows: add internal binary snapshot scriptsPete Batard2012-04-124-1/+199
|
* Git: add pre-commit and post-rewrite hooks for versioningPete Batard2012-04-114-2/+84
| | | | * Also adds the maintainer-only .private directory
* Misc: update pkg-config templatePete Batard2012-04-111-3/+2
| | | | * Change human readable name to libusbx and mention OpenBSD
* Windows: Remove #define options and use same set of defaultsPete Batard2012-04-114-144/+0
| | | | | | * The DYNAMIC_FDS, AUTO_CLAIM and FORCE_INSTANT_TIMEOUTS options were introduced for development/testing and don't appear to be used by the Windows backend users => remove them.
* Windows: misc improvementsPete Batard2012-04-105-33/+34
| | | | | | * prefer calloc over malloc * silence VS2010 intellisense warnings on mem allocation * other minor fixes and formatting improvements to align with -pbatard
* Core: Add get_version() callPete Batard2012-04-106-19/+44
| | | | * Also some formatting/typo improvements
* Windows: remove obsolete lsusb project filesPete Batard2012-04-092-379/+0
|
* Windows: add VS2010 project filesPete Batard2012-04-0911-0/+849
|
* examples: Use snprintf() instead of sprintf() in dpfp and dpfp_threadedPeter Stuge2012-04-092-2/+2
| | | | | | | The OpenBSD C compiler generates a warning for every use of sprintf() and for a good reason. Reported in http://marc.info/?m=133376187514495 Reported-by: Xiaofan Chen <xiaofanc@gmail.com>
* OpenBSD: Fix warning: 'hpriv' may be used uninitializedPeter Stuge2012-04-091-1/+10
| | | | | | | | | | | As reported in http://marc.info/?m=133376187514495 The variable would be used uninitialized when the internal list of open devices is empty as obsd_handle_events() checks which device the event fd belongs to, which can not actually happen, but if it ever does happen then we will now return LIBUSB_ERROR_NO_DEVICE. Reported-by: Xiaofan Chen <xiaofanc@gmail.com>
* Windows: Fix support for variadic macrosPete Batard2012-04-092-5/+5
| | | | | * Visual C++ did not support variadic macros until VS2005, as per http://msdn.microsoft.com/en-us/library/ms177415%28v=VS.80%29.aspx
* Misc: Indicate that licence is LGPL-2.1 or laterLudovic Rousseau2012-04-041-1/+2
| | | | Also make the name of the licence more explicit.
* Misc: Update list of maintainers from READMELudovic Rousseau2012-04-041-0/+1
|
* Misc: Fix missing libsub's -> libusbx's from previous patchesPete Batard2012-04-034-30/+30
|
* Doc: Update doxygen for libusbx and add logoPete Batard2012-04-033-11/+16
|
* Misc: Rebrand to libusbxPete Batard2012-04-0327-316/+280
| | | | | * Mentions of 'libusb' in doxygen are changed to 'libusbx' * Also update copyright notices and remove unneeded EOF LFs
* libusbx 1.0.9v1.0.9Pete Batard2012-04-024-12/+27
| | | | * Also updated AUTHORS and THANKS
* Samples: Fix "warning: no newline at end of file" in xusb.cPete Batard2012-04-011-4/+4
| | | | * Also remove trailing whitespaces
* Autotools: Fix missing DLL .def file from make distPete Batard2012-03-311-1/+1
|
* Autotools: Fix msvc dir not being included in make distPete Batard2012-03-311-1/+1
|
* Linux: Don't spam the console with 'device unconfigured' errorsHans de Goede2012-03-311-2/+4
|
* libusbx 1.0.9-rc5v1.0.9-rc5Pete Batard2012-03-312-3/+11
|