summaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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
* svn r40:Pete Batard2010-01-141-0/+3
| | | | | | | - feature complete! - added transfer cancellation - added device reset - additional code cleanup
* svn r38:Pete Batard2010-01-141-21/+77
| | | | | | - bulk/interrupt I/O at last! - endpoint handling - minor code improvements
* svn r37:Pete Batard2010-01-141-58/+166
| | | | | | | - windows_set_interface_altsetting (untested) - windows_set_configuration (untested) - updated xusb.c test program, with comprehensive XBox Controller test and preparation for bulk transfers test on Mass Storage device
* svn r25:Pete Batard2010-01-141-6/+7
| | | | | | - WinUSB composite device support (with DeviceClasses registry lookup) - better interface handling - other minor improvements
* svn r22: Partial async I/O (control only) with custom poll and OVERLAPPED ↵Pete Batard2010-01-141-37/+58
| | | | pointers as fds. Should read device strings. Also some provisions for composite devices.
* svn r18: basic open/close & claim/release interface + detection of WinUSB ↵Pete Batard2010-01-141-3/+46
| | | | and driverless devices (priv->driver)
* svn r13: add winusb to the mix: query first interface and pipes on device openPete Batard2010-01-141-3/+8
|
* svn r11: remove dpfp compilation (doesn't work on Windows) and add the xusb ↵Pete Batard2010-01-142-1/+76
| | | | test program
* lsusb example: make print_devs() staticLudovic Rousseau2009-11-211-1/+1
| | | | lsusb.c:26: warning: no previous prototype for ‘print_devs’
* Introduce contexts to the APIDaniel Drake2008-06-263-15/+15
| | | | | Suggested by David Zeuthen. This allows multiple libraries in the same process to independently use libusb without interfering.
* Handle hot-unpluggingDaniel Drake2008-05-111-8/+14
| | | | | This involved moving from select() to poll() because there is no way to distinguish usbfs's POLLERR condition with select().
* Rework configuration handlingDaniel Drake2008-05-091-3/+8
| | | | | | libusb no longer caches descriptors in libusb_device but backends are intended to be able to provide copies from memory. In the common linux case we can use sysfs.
* libusb_get_device_list() can return negative error codeDaniel Drake2008-05-091-1/+2
|
* Fix libusb_get_device_list return valueDaniel Drake2008-05-041-3/+4
| | | | It was documented to return the list length, but was returning 0.
* Expose bus number and device addressDaniel Drake2008-05-021-1/+3
|