312 Commits

Author SHA1 Message Date
Michael Plante b1b43b6047 r136: updated .gitignore: added doxygen.cfg and xusb binary r136 2010-02-02 22:48:26 +00:00
Michael Plante 983297cb17 r135: stopped modifying errno if succeeded. r135 2010-02-02 22:47:35 +00:00
Michael Plante 5d936090c4 r134: fixed some silly /W3 warnings in MSVC r134 2010-02-02 22:46:54 +00:00
Michael Plante 44fe2705d4 r133: fixed missing LONG_PTR reference using intptr_t instead since that's in one of our headers r133 2010-02-02 22:46:27 +00:00
Pete Batard 3bb808f398 r132: harmonized compatibility layer function names (_libusb prefix always, rather than _for_poll suffix)
additional minor xusb improvements.
r132
2010-02-02 19:42:27 +00:00
Pete Batard c8b4ec4c6d r131: fixed various /W4 warnings for MSVC (core files) r131 2010-02-01 19:26:13 +00:00
Pete Batard 8a35c05b5a r130: fixed *size in HidD_GetPhysicalDescriptor and fixed various /W4 warnings for MSVC (windows files) 2010-02-01 19:25:17 +00:00
Pete Batard 3e258645f4 r129: xusb fixes for Mass Storage test (Alan Stern):
- forces command length to 31
- null termination of vid/pid/rev strings
- big endian detection
2010-01-31 03:36:45 +00:00
Pete Batard a2773d1edf r128: additional cygwin fixes for concurrency 2010-01-30 23:27:19 +00:00
Pete Batard 76eef888a1 r127: merged concurrency branch with master (native improved concurrency handling for Windows files) [c119->c137]:
c119: concurrency handling: - use semaphore in init/exit (Orin Eman) - use separate thread for timer and remove the need for affinity restoration - minor code readability improvements (moved GUIDs to .h)
c120: removed unneeded disabling of APIs in winusb_exit & hid_exit
c121: changed CreateThread to _beginthreadex, so CRT works properly when mem is low (Michael Plante)
c122: made name of named-semaphore unique across the system per-process (Michael Plante)
c123: allow timer thread to quit gracefully, and cleanup many of the handles (Michael Plante)
c124: fixed concurrent_usage if init fails (Michael Plante)
c125: drop PulseEvent in timer thread and use semaphore for response (Orin Eman).
c126: removed pthread dependency in windows_compat.c
c127: fixed missing reset of timer_request when event has already been handled
c128: additional fixes for timer thread: - closed timer_mutex handles, and fixed volatile warning regarding interlocked ops (Michael Plante) - missing ResetEvent and possible missing request handling fix (Orin Eman) - additional fixes
c129: use of spinlocks and critical sections in windows_compat.c for mutexes (Orin Eman, Michael Plante)
c130: fixed missing spinlock in exit_polling
c131: made spinlock static, changed to LONG, and casted off volatile in InterlockedExchange calls (Michael Plante)
c132: additional security checks when entering critical sections in windows_compat.c
c133: brought latest master commits to the concurrency branch [r119 -> r122]
c134: fixed unfortunate inverted comparison introduced in c132
c135: fixed timer thread warnings with MinGW
c136: brought latest master commits to the concurrency branch [r123 -> r126]
c137: removed pthread.h and sched.h includes from windows_usb.c
2010-01-30 21:45:15 +00:00
Pete Batard c1f00180ff r126: fixed sscanf_s test for MSVC6 users 2010-01-30 21:00:23 +00:00
Pete Batard f95401139f r125: oops - fixed check for OS_WINDOWS in previous patch 2010-01-30 14:50:44 +00:00
Pete Batard bf4f54160c r124: removes #error on previous commit and fixes thing ourselves 2010-01-30 01:40:41 +00:00
Pete Batard afe70cedf7 r123: reverted the use of usb_interface in core and forced interface to be undefined always on Windows 2010-01-29 20:04:35 +00:00
Pete Batard 47c83183c0 r122: fixed poll conflict on cygwin (all compat functions renamed to _libusb_####)
- fixed sscanf_s undefined for non MS compilers
- fixed cygiwn warnings in windows_usb.c
2010-01-28 23:18:52 +00:00
Pete Batard 37b685c355 r121: some more small improvements for xusb.c (vid:pid as cmdline parameter) 2010-01-28 15:56:04 +00:00
Pete Batard c69d51d779 r120: vc2005 express fixes (Orin Eman) 2010-01-28 13:32:38 +00:00
Pete Batard 388620e21f r119: xusb improvements for mass storage (Alan Stern) 2010-01-27 21:23:31 +00:00
Pete Batard fa2f3231db r118: more readable xusb output and added automated endpoint generation for Mass Storage 2010-01-26 15:32:57 +00:00
Pete Batard 8271c03ee4 r117: fixed missing API_EXPORTED for the new libusb_strerror call 2010-01-26 02:05:53 +00:00
Pete Batard 03265db68a r116: DDK build completion (Orin Eman):
- lsusb/xusb sources + ddk_build call
- missing libusb_strerror in .def
- removed "handle_timeouts_locked unused" warning in in io.c for MinGW
2010-01-26 01:46:17 +00:00
Pete Batard 9459dd37f0 r115: added libusb_strerror (Francesco Montorsi) 2010-01-25 22:21:31 +00:00
Pete Batard f581c91677 r114: sources update and build script (Orin Eman)
OACR 28719 warning removal (Orin Eman)
minor code cleanup
2010-01-25 21:55:46 +00:00
Pete Batard 95eccbda1f r113: HID part 4 (feature complete) + rc file copyright update (Peter Stuge) 2010-01-25 17:39:29 +00:00
Michael Plante 60b10a1c31 r112: fixed missing mutex unlock on malloc fail, and destroy mutex/cv in usbi_io_exit 2010-01-25 12:00:51 +00:00
Michael Plante b5eed0cacc r111: destroy core.c mutexes when done, and fix a few unlikely memory leaks 2010-01-24 23:34:25 +00:00
Pete Batard 849d2915d6 r110: fixed missing handle_timeouts_locked, which was removed with r102 2010-01-24 23:21:26 +00:00
Michael Plante 04ff7aab6a r109: workaround for broken timercmp on both windows and some posix systems (latter according to linux manpage, which says glibc does not have this problem) 2010-01-24 22:52:40 +00:00
Michael Plante c1978b3955 r108: Made version info more easily configurable by hand and made OriginalFilename depend on debug vs release 2010-01-24 22:51:01 +00:00
Pete Batard 8949436aaf r107: removed unnecessary dependency on MFC in the resource script 2010-01-24 22:46:36 +00:00
Michael Plante 5869484e21 r106: Fixed leak in usbi_alloc_device when pthread_mutex_init fails 2010-01-24 22:41:41 +00:00
Pete Batard 628bd43bc2 r105: added MS Sidewinder HID test in xusb.c + minor changes/improvements 2010-01-23 23:28:55 +00:00
Michael Plante 6b34ff4ed7 r104: thread safety change for pipe_number global
Signed-off-by: Michael Plante <michael.plante@gmail.com>
2010-01-23 22:16:35 +00:00
Pete Batard c7fa44ff83 r103: HID part 3 (WIP)
- get_interface_details() now has an optional SP_DEVINFO_DATA parameter
- usbi_handle_transfer_cancellation() now called from windows_cancel_transfer()
- set_report/get_report (WIP) and improved HID support functions
- better support for sync I/O in hid_submit_control_transfer
- hid_abort_transfers
2010-01-22 20:25:55 +00:00
Pete Batard f0d3526217 r102: handle_timeouts() CORE modification
- apply the same trick as usbi_handle_disconnect() to handle_timeouts(), so that usbi_handle_transfer_cancellation() can now be called from the backend without locking after a timeout.
- remove the unneeded handle_timeouts_locked()
2010-01-22 20:08:15 +00:00
Pete Batard 72c4defd45 r101: MSVC6 & VS 2005 updates (Michael Plante & Orin Eman) 2010-01-21 20:01:45 +00:00
Pete Batard dba186a53d r100: added MSVC6 project files (Michael Plante) 2010-01-21 18:40:19 +00:00
Pete Batard fe531d9ad5 r99b: oops - fixed removal of API_EXPORTED 2010-01-21 17:41:47 +00:00
Pete Batard 5e98c8b1a3 r99: DDK/sources x64 final fix and additional MSVC fixes (/MT) 2010-01-21 17:38:43 +00:00
Pete Batard a535ea35cd r98: additional MSVC6 fixes 2010-01-21 12:10:43 +00:00
Pete Batard c8bec80afb r97: minor fixes for cygwin and sources 2010-01-21 11:19:59 +00:00
Pete Batard 3fa6b35e7e r96: added sources support (Orin Eman) 2010-01-21 02:55:30 +00:00
Pete Batard 0c568de2e3 r95: added .rc file for DLL (Michael Plante & Orin Eman) 2010-01-21 01:52:52 +00:00
Pete Batard 0fc4348172 r94: removed the need for DDK includes + minor fixes 2010-01-21 01:34:53 +00:00
Pete Batard 5590301e7f r93: HID part 2 (WIP)
- 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
2010-01-20 20:29:45 +00:00
Pete Batard 8242029421 r92: updated .gitignore 2010-01-20 01:59:09 +00:00
Pete Batard 4375c79225 r91: additional MSVC fixes
- use of api/sdkddkver.h for Win7 version and greater reliance on DDK files (Orin Eman)
- reorganized includes in windows_usb.c
2010-01-19 01:36:19 +00:00
Pete Batard e158221159 r90: more compilation environment fixes:
- 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
2010-01-19 00:55:30 +00:00
Pete Batard 7a8f7d1826 r89: extended API support
- 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
2010-01-18 20:32:38 +00:00
Pete Batard 2012ca7b23 r88: final fix for MSVC/x64 (long in Windows' timeval struct) 2010-01-16 22:45:00 +00:00