summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* removed trailing whitespaces (r214)c204Peter Stuge2010-03-181-22/+22
|
* continuous timeout fixes and other improvements (Graeme Gill)c195Pete Batard2010-03-123-1/+2
|
* residuals from previous mergec192Pete Batard2010-03-101-550/+1
|
* merge up to r202c191Pete Batard2010-03-105-59/+85
|
* libusb0.sys backend integration - part 2 (Graeme Gill)c190Pete Batard2010-03-103-2/+555
|
* changed calling convention to __stdcall (VS2008)Pete Batard2010-03-032-0/+8
|
* renamed windows_compat to poll_windowsPete Batard2010-03-022-2/+2
|
* reattach driver when detached in xusb (Xiaofan Chen)r183Pete Batard2010-03-011-0/+11
|
* xusb improvements for HID test: int. vs bulk (Xiaofan Chen)r182Pete Batard2010-03-011-2/+2
|
* xusb improvements and fixesr181Pete Batard2010-02-281-12/+24
|
* exclude dpfp_threaded if pthread is not available (MinGW)r174Pete Batard2010-02-241-1/+8
|
* includes simplification and cleanup (core)Pete Batard2010-02-242-3/+0
|
* merge abstraction for POSIX Threads and integration changes (Michael Plante, ↵r169Pete Batard2010-02-2412-55/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Peter Stuge) v1.0.6 release Darwin: support multiple calls to libusb_init Credit to Orin Eman for finding this bug. Darwin: use logging functions Use usbi_warn, usbi_err, and usbi_info instead of _usbi_log. Darwin: fix memory leak in process_device Credit to Mike Colagrosso for finding this bug. Add internal abstraction for POSIX Threads This prepares for a Windows backend without dependency on pthreads-w32. pthread_* is renamed to usbi_* and PTHREAD_* to USBI_*. A usbi_mutex_static_t and usbi_mutex_static_lock() and _unlock() are introduced for statically initialized mutexes, since they may be implemented using other types when pthreads mutexes aren't used. Move -pthread from libusb/Makefile.am to host-specific AM_CFLAGS in configure.ac. AM_CFLAGS is already used in Makefile.am. (Numerous merge conflicts resolved by Michael Plante) misc fixes to pthreads abstraction * windows_compat.h should not be directly included (use libusbi.h) * windows_usb.c still had some references to pthread_mutex_[un]lock Add libusb_strerror() to get short error message in English from enum (Merge conflicts resolved by Michael Plante) Better cleanup on errors, stricter types and some good casts Avoid various memory leaks in error code paths and remove warnings. Also add usbi_cond_destroy in os/threads_posix.h because it's used for cleanup now. (Merge conflicts resolved by Michael Plante) Rename all interface parameters to usb_interface or interface_number (Merge conflicts resolved by Michael Plante) Add type parameter to the list_for_each_entry() and _safe() macros (Merge conflicts resolved by Michael Plante) VA_ARGS workaround for logging with MSVC6 (Merge conflicts resolved by Michael Plante) Fix context memory leak in libusb_init() * Now holds default_context_lock for duration of libusb_init * Doesn't allocate it if not needed Fix the last MSVC /W3 warning removal of pthreads from MSVC and mingw * removed pthread*.lib from linking in msvc6 (2005/8 not yet edited) * added threads_windows.[ch] to all project files in msvc6 * added usbi_cond_signal to both threading versions, unused * added native windows threading code, now used removed redundant time.h includes removed pthread-win32 informational solution files updated MSVC 2005/2008 for thread abstraction fixed DDK build fixed cygwin's use of POSIX threads fixed dpfp/dpfp_threaded for MinGW compatibility config_msvc.h -> msvc/config.h pthread abstraction for DLL project files fixed bad reference to thread_windows in 2005 DLL vcproj cygwin ifdef is not required in threads_windows.h - removed fixed residuals from previous patches moved thread source detection into autotool scripts
* updated copyright notice and credits in sourcer167Pete Batard2010-02-201-2/+4
|
* xusb improvements (feature reports)r162Pete Batard2010-02-181-2/+13
|
* r141: HID I/O Overhaul:r141Pete Batard2010-02-061-47/+96
| | | | | | | | - discard report ID from buffer (new hid_buffer in transfer_priv & new copy_transfer_data backend call) - overflow detection - extended HID xusb test Also: - fixed ill placed memset on composite device siblings detection
* r132: harmonized compatibility layer function names (_libusb prefix always, ↵r132Pete Batard2010-02-021-7/+25
| | | | | | rather than _for_poll suffix) additional minor xusb improvements.
* r129: xusb fixes for Mass Storage test (Alan Stern):Pete Batard2010-01-311-6/+19
| | | | | | - forces command length to 31 - null termination of vid/pid/rev strings - big endian detection
* r126: fixed sscanf_s test for MSVC6 usersPete Batard2010-01-301-1/+1
|
* r124: removes #error on previous commit and fixes thing ourselvesPete Batard2010-01-301-2/+2
|
* r123: reverted the use of usb_interface in core and forced interface to be ↵Pete Batard2010-01-291-5/+21
| | | | undefined always on Windows
* r122: fixed poll conflict on cygwin (all compat functions renamed to ↵Pete Batard2010-01-281-3/+3
| | | | | | | _libusb_####) - fixed sscanf_s undefined for non MS compilers - fixed cygiwn warnings in windows_usb.c
* r121: some more small improvements for xusb.c (vid:pid as cmdline parameter)Pete Batard2010-01-281-16/+39
|
* r120: vc2005 express fixes (Orin Eman)Pete Batard2010-01-282-4/+4
|
* r119: xusb improvements for mass storage (Alan Stern)Pete Batard2010-01-271-46/+83
|
* r118: more readable xusb output and added automated endpoint generation for ↵Pete Batard2010-01-261-58/+71
| | | | Mass Storage
* r116: DDK build completion (Orin Eman):Pete Batard2010-01-264-3/+83
| | | | | | - lsusb/xusb sources + ddk_build call - missing libusb_strerror in .def - removed "handle_timeouts_locked unused" warning in in io.c for MinGW
* r115: added libusb_strerror (Francesco Montorsi)Pete Batard2010-01-251-1/+1
|
* r105: added MS Sidewinder HID test in xusb.c + minor changes/improvementsPete Batard2010-01-231-8/+82
|
* r101: MSVC6 & VS 2005 updates (Michael Plante & Orin Eman)Pete Batard2010-01-214-4/+334
|
* r100: added MSVC6 project files (Michael Plante)Pete Batard2010-01-212-0/+205
|
* r99: DDK/sources x64 final fix and additional MSVC fixes (/MT)Pete Batard2010-01-212-8/+8
|
* r94: removed the need for DDK includes + minor fixesPete Batard2010-01-211-1/+1
|
* r93: HID part 2 (WIP)Pete Batard2010-01-201-3/+9
| | | | | | | | | | - added composite HID device support in xusb.c - fixed signed/unsigned bug in windows_compat.c (Orin Eman) - added support for synchronous completion of async requests - composite HID device support (ClassGUID fallback for driver unavail., read interface number from MI_##, extra path for HID) - generic interface_by_endpoint and get_valid_interface - added HID struct in priv - HID submit_control_transfer
* r90: more compilation environment fixes:Pete Batard2010-01-194-12/+402
| | | | | | - added Visual Studio 2005 (MSVC8) solution and project files (Orin Eman) - renamed VS 2008 solution and project files - fixed "warning: undefined symbols not allowed" for MinGW/cygwin in configure.ac
* r89: extended API supportPete Batard2010-01-181-1/+9
| | | | | | | | | - composite devices as a separate backend API - mutidriver support in composite devices interface - HID: device interface path, open/close (WIP) - added HID test in xusb.c - fixed Windows version and DDK support - smaller fixes
* r85: fixed MSVC warnings for x64 and reverted ssize_t to int for ↵Pete Batard2010-01-161-1/+2
| | | | libusb_get_device_list change introduced with r52. Added definition on ssize_t in libusb.h for MSVC platforms.
* r82: added x64 support for MSVC and finalized directory structure.Pete Batard2010-01-152-14/+334
| | | | Also amended README_MSVC.txt to reflect a better setup for the required DDK directories
* r80: workaround for interface macro redefinition on Windows (removes the ↵Pete Batard2010-01-151-13/+11
| | | | need for #undef interface in end user sources)
* r75: fixed missing <stdarg.h> include in xusb.c for UNIX platformsPete Batard2010-01-141-0/+1
|
* r74: fixes CR/LF conversions introduced with previous changesPete Batard2010-01-141-17/+17
|
* r73: moved -pthread option to CFLAGS for platforms that need itPete Batard2010-01-141-17/+17
|
* Fix CR/LF inconsistenciesPete Batard2010-01-143-405/+405
|
* svn r64:Pete Batard2010-01-142-0/+8
| | | | | - added .def file for MSVC6 dll build (Michael Plante) - prevented conflicts with pdb and HTML logs for lsusb & xusb
* svn r63: - updated Visual Studio 2008 projects files (fixed missing options ↵Pete Batard2010-01-141-0/+1
| | | | for Debug)
* svn r62: More MSVC6 compatibilityPete Batard2010-01-141-1/+12
| | | | | - perr() without variadic in xusb.c (Michael Plante) - dropped LOOP_CONTINUE variadic in windows_usb.c
* svn r54: - fixes missing config_msvc.hPete Batard2010-01-142-6/+9
|
* svn r52: MSVC compatibility update:Pete Batard2010-01-142-0/+373
| | | | | | | | | | | | | | | | | | | | - changed ssize_t to int for libusb_get_device_list (do we really expect that many devices?). Also in lsusb.c - redefined inline to __inline in libusb.h - remove the unistd.h include for OS_WINDOWS - api/ vs ddk/ for ddk includes - changed variadics using ,fmt... to ,... and __VA_ARGS__ - list_for_each_entry now requires a type parameter - libusb_cpu_to_le16 as inline - time.h vs sys/time.h - harmonization of #ifdef vs #if defined() within individual files - defined an empty __drv_preferredFunction(func,why) before #include <cfgmgr32.h>, as it only applies to obsolete functions - excluded USB_HUB_CAPS redefinition from MSVC - new msvc top directory for includes (stdint.h inttypes.h and pthread) - new config_msvc.h file - new README_MSVC and MSVC project files - removed various warnings (signed/unsigned comparisons, cast, etc)
* svn r44:Pete Batard2010-01-141-42/+173
| | | | | | - fixed configure.ac for libusb handled timeouts - fixed crash on invalid fds in windows_compat.c - xusb improvements for mass storage test
* svn r42:Pete Batard2010-01-141-5/+38
| | | | | | - code cleanup - device reset improvement (tentative) - inquiry request for Mass Storage in xusb.c