summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* libusbx 1.0.15-rc3v1.0.15-rc3Pete Batard2013-04-043-6/+6
|
* OS X: Don't try to work around buggy devices with bInterval = 0 on ↵Nathan Hjelm2013-04-042-7/+2
| | | | isochronous...
* Core: fix bug in libusb_has_capability()Ludovic Rousseau2013-04-042-3/+3
| | | | | | | | The problem was detected by clang on Mac OS X: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] note: use '&' for a bitwise operation We want to use a bitwise operation and not a logical operation.
* libusbx 1.0.15-rc2v1.0.15-rc2Pete Batard2013-04-033-3/+4
|
* OS X: Don't assume an interval of 1Nathan Hjelm2013-04-032-10/+18
|
* WinCE: Fix missing sources from dist tarballToby Gray2013-04-032-2/+4
|
* libusbx 1.0.15-rc1v1.0.15-rc1Pete Batard2013-04-025-5/+20
| | | | * Also fix missing header in release tarball
* Core: Add HID and kernel detach capability detection for all backendsPete Batard2013-04-0210-19/+44
| | | | | | | | | | * Also remove Linux special case from xusb sample. * Note that LIBUSBX_API_VERSION is incremented as a result of libusb_has_capability() returning nonzero rather than 1 when a capability is supported. * A LIBUSB_CAP_HAS_HOTPLUG is also added, though it is currently not implemented on any platform * Closes #102
* Windows: Fix USB descriptor creation code for HID devicesToby Gray2013-04-012-3/+2
| | | | | | | | * Prior to this fix the location for the next endpoint structure was obtained by using ed++. This doesn't work as sizeof(libusb_endpoint_descriptor) is greater than LIBUSB_DT_ENDPOINT_SIZE due to extra members. * Closes #110
* Samples: More fxload improvements and cleanupPete Batard2013-03-163-60/+77
| | | | | | | * Type detection when bus,addr is specified * Improved check for FX3 image header * Switch back to using -p for bus,addr and use a comma to match the output of listdevs
* Tests: Suppress Visual Studio 2012 Code Analysis warningsPete Batard2013-03-162-3/+4
|
* Samples: fix compiler warningLudovic Rousseau2013-03-152-2/+2
| | | | | | Make fx3_load_ram a static function. ezusb.c:534: warning: no previous prototype for ‘fx3_load_ram’
* Samples: fxload improvements and cleanupFederico Manzan2013-03-154-43/+89
| | | | | | | * fix C++ compilation * use stdint types * allow to specify bus:address as a parameter * allocate a buffer when transferring FX3 image and check for R/W errors
* OS X: Do not assume HS when submitting isochronous transferVegard Storheil Eriksen2013-03-122-2/+5
| | | | * Closes #99
* OS X: Use kCFNumberSInt32Type when reading device location from the IO registryNathan Hjelm2013-03-122-5/+7
| | | | * Closes #97
* Windows: Fix multiple warningsPete Batard2013-03-125-8/+16
| | | | | * Most of these warnings are false positive from VS2012's "Run Code Analysis" * Also closes #98: "windows_usb.c:376:30: 'dev_info' may be used uninitialized"
* Samples: Add FX3 firmware upload support for fxloadFederico Manzan2013-03-104-7/+114
|
* Linux: Consume all events on a fd in one goHans de Goede2013-03-102-2/+4
| | | | | * This fixes libusb_handle_events_timeout() only handling one event * Closes #6
* Samples: Reinstate interface requests when querying WCID devicesPete Batard2013-03-052-5/+6
| | | | | * Reverts commit 939a4782b28c36dfddb68585c4b027a4d5494a5b. * Closes #96
* WinCE: Post integration cleanupPete Batard2013-03-0310-35/+24
| | | | | | * Update copyrights and switch to UTF-8 everywhere * Add SleepEx() to missing.h, and move include to libusbi.h * Remove ifdef for GetSystemTimeAsFileTime()
* Misc: Simplify includes and misc. cleanupPete Batard2013-02-2714-52/+25
| | | | | | | | | | | * fxload sample provenance * No need for <sys/types.h> in samples as already in libusb.h * Don't bother about sscanf_s in xusb * Use HAVE_### and rely on config.h where possible * Formal inclusion of <winsock.h> in libusb.h for WinCE and WDK * Cleanup of Windows' config.h * Avoid ENAMETOOLONG and ENOTEMPTY conflict between errno.h and winsock.h for WinCE * Additional newlines & braces cleanup
* Tests: Fix broken OS-X and Linux buildsXiaofan Chen2013-02-242-3/+3
| | | | | * _dup2 is Windows only. Use dup2 instead * Breakage was introduced in 76eecc6ce11d1bedee369859899901037dcd4cc2
* WinCE: Don't confirm protocol stalls with device in wince_transfer_callback()Simon Haggett2013-02-222-13/+13
| | | | | | | | | | | | | | | | When wince_transfer_callback() observes a stall (io_result set to ERROR_NOT_SUPPORTED), it checks with the device (by sending a GET_STATUS control transfer) that the endpoint is really stalled. This check is not suitable for protocol stalls as these are always cleared at the start of the next control transfer. When a protocol stall occurs, wince_transfer_callback() observes that the corresponding control endpoint does not remain stalled and so forces io_result to ERROR_SUCCESS. This then prevents applications from detecting that a control request was not supported by the device. This patch prevents wince_transfer_callback() from attempting to confirm protocol stalls with the device, allowing io_result to remain set to ERROR_NOT_SUPPORTED. A couple of comments and a debug log message within wince_transfer_callback() are also corrected.
* Tests: Simplify stdout redirection and fix Windows assertion error on cleanupPete Batard2013-02-223-36/+45
| | | | | | * cleanup_test_output() produced an assertion error when compiled with MSVC due to closing ctx->output_file * set ctx->output_file to stdout by default
* Windows: Don't duplicate paths for HID interfacesPete Batard2013-02-212-3/+7
| | | | | * This caused the many_device_lists to fail after 32 iterations * Closes #69
* Windows: Fix broken WDK compilationPete Batard2013-02-182-1/+4
| | | | | | | * 790ffc78b008a03c95d10899f53997b504f55c72 moved the inclusion of poll_windows.h after the use of struct timeval, which removed the hidden winsock.h include where timeval is defined on the WDK. * Make the winsock.h include explicit
* Windows: fix compiler warningLudovic Rousseau2013-02-182-2/+2
| | | | libusb/os/threads_windows.c:139:1: warning: '__inline' is not at beginning of declaration [-Wold-style-declaration]
* Windows: fix compiler warningLudovic Rousseau2013-02-182-2/+3
| | | | | libusb/os/threads_windows.c: In function 'usbi_cond_timedwait': libusb/os/threads_windows.c:190:2: warning: nested extern declaration of 'epoch_time' [-Wnested-externs]
* Windows: fix compiler warningLudovic Rousseau2013-02-182-2/+2
| | | | | | | sizeof() returns a size_t not an int libusb/os/windows_usb.c:1411:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] libusb/os/windows_usb.c:1416:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
* Windows: fix compiler warningsLudovic Rousseau2013-02-182-4/+4
| | | | | | | | | | libusb/os/windows_usb.c:1317:2: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] libusb/os/windows_usb.c:1317:2: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] libusb/os/windows_usb.c:1317:2: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] libusb/os/windows_usb.c:3634:2: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] libusb/os/windows_usb.c:3634:2: warning: initialization discards 'const' qualifier from pointer target type [enabled by default] libusb/os/windows_usb.c:3634:2: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
* Windows: remove useless extern declarationLudovic Rousseau2013-02-182-3/+1
| | | | | libusb/os/windows_usb.c:45:13: warning: redundant redeclaration of 'usbi_fd_notification' [-Wredundant-decls] libusb/libusbi.h:420:6: note: previous declaration of 'usbi_fd_notification' was here
* Windows: fix compiler warningsLudovic Rousseau2013-02-182-4/+4
| | | | | | libusb/os/windows_usb.c:368:36: warning: no previous prototype for 'get_interface_details_filter' [-Wmissing-prototypes] libusb/os/windows_usb.c:691:5: warning: no previous prototype for 'get_sub_api' [-Wmissing-prototypes] libusb/os/windows_usb.c:1179:6: warning: no previous prototype for 'get_api_type' [-Wmissing-prototypes]
* Windows: remove unused functionLudovic Rousseau2013-02-182-15/+1
| | | | libusb/os/poll_windows.c:223:13: warning: 'reset_overlapped' defined but not used [-Wunused-function]
* Windows: fix compiler warningsLudovic Rousseau2013-02-182-6/+6
| | | | | | | | libusb/os/poll_windows.c:176:5: warning: no previous prototype for '_fd_to_index_and_lock' [-Wmissing-prototypes] libusb/os/poll_windows.c:197:13: warning: no previous prototype for 'create_overlapped' [-Wmissing-prototypes] libusb/os/poll_windows.c:211:6: warning: no previous prototype for 'free_overlapped' [-Wmissing-prototypes] libusb/os/poll_windows.c:223:6: warning: no previous prototype for 'reset_overlapped' [-Wmissing-prototypes] libusb/os/poll_windows.c:401:6: warning: no previous prototype for '_free_index' [-Wmissing-prototypes]
* Examples: Fix compiler warningLudovic Rousseau2013-02-152-2/+2
| | | | | | examples/ezusb.c:251:9: warning: implicit conversion loses integer precision: 'unsigned long' to 'unsigned int' [-Wshorten-64-to-32] off = strtoul(buf+3, NULL, 16); ~ ^~~~~~~~~~~~~~~~~~~~~~~~
* Core: Fix compiler warningLudovic Rousseau2013-02-152-2/+2
| | | | | | | | libusb/io.c:1877:35: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32] timeout_ms = (tv->tv_sec * 1000) + (tv->tv_usec / 1000); ~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ On Mac OS X tv_sec is a __darwin_time_t which is a long, not an int.
* Use "" instead of <> for internal includesSean McBride2013-02-156-7/+7
| | | | | some libusbx include files were included with angle brackets, changed to quotes. Needed to work better in Xcode project
* Windows: Update transferred data on timeout or cancel.Toby Gray2013-02-142-3/+7
| | | | | | | * When handling aborted transfer it's possible that some data (but not the full buffer) was transferred. * This change ensures that this partially transferred data is recorded and passed up to the caller.
* Linux: Don't set the USBFS_URB_SHORT_NOT_OK flag on the last urbHans de Goede2013-02-142-2/+2
| | | | * Closes #142
* Windows: Improve error reporting in winusbx_claim_interface()Pete Batard2013-02-022-7/+8
| | | | | | | * After the filter detection code is run, the error reported may have nothing to do with the original error (or report SUCCESS) and is unhelpful * Also change TODO comments to default VS2012 task style
* Windows: Fixed bug in interface autoclaimBenjamin Dobell2013-02-023-3/+4
| | | | | | * Bug was introduced in f2b19e4a32c1445f4fea06beca61e8c7e7757950 * Closes #78 * Closes #80
* Core: Fix warning implicit conversion changes signednessLudovic Rousseau2013-01-292-5/+6
| | | | * Closes #70
* Core: Don't wait for completion if cancel_transfer failedZoltán Kovács2013-01-293-9/+12
| | | | | * See http://libusbx.1081486.n5.nabble.com/Libusbx-devel-libusb-interrupt-transfer-does-not-return-in-case-of-error-td626.html * Closes #76
* Windows: Display error code in default case of windows_transfer_callbackPete Batard2013-01-282-2/+2
|
* WinCE: Add support for WinCE (Solution files)Toby Gray2013-01-2310-4/+6037
|
* WinCE: Add support for WinCE (sources)Toby Gray2013-01-2315-9/+1409
|
* Windows: Simplify poll_windows and add provisions for WinCEToby Gray2013-01-236-109/+123
| | | | | * Because poll_windows now requires struct usbi_transfer to be defined, it's inclusion in libusbi.h had to be moved down.
* Windows: Add windows_common.h headerToby Gray2013-01-2314-90/+165
| | | | | * This file contains definition that will be shared between the Windows and Windows CE backends
* Core: Use HAVE_SYS_TYPES_H and HAVE_SIGNAL_HPete Batard2013-01-235-2/+15
| | | | * These files may not be available on all platforms (eg. WinCE)
* Core: Filter out 8-bit characters in libusb_get_string_descriptor_asciiРоман Донченко2013-01-073-2/+3
| | | | * Closes #68