Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fixed missing winioctl.h header for cygwinpbr301 | Pete Batard | 2010-09-06 | 1 | -0/+1 |
| | |||||
* | use IOCTLs for HID reports (input, output, feature) | Pete Batard | 2010-09-06 | 2 | -153/+59 |
| | | | | | | * fixes feature reports not providing actual read size (reported by Axel Rohde) * removes the USE_HIDD_FOR_REPORTS macro * IOCTL usage inspired from HIDAPI by Alan Ott | ||||
* | [INTERNAL - NOT FOR RELEASE] binary snapshots improvements | Pete Batard | 2010-08-23 | 2 | -20/+15 |
| | | | | | | * one set of examples (static ones) * adds examples source * examples at root | ||||
* | workaround for unavailable _strdup on MinGW32pbr300 | Pete Batard | 2010-08-21 | 1 | -1/+6 |
| | |||||
* | fixed possible buffer overflow in windows_error_str()pbr299 | Pete Batard | 2010-08-19 | 1 | -4/+9 |
| | | | | * also added removal of CR/LF | ||||
* | added full support for filter drivers | Pete Batard | 2010-08-19 | 2 | -35/+66 |
| | | | | | * precedence is driver > upper filter > lower filter and defined in struct driver_lookup lookup from set_device_paths() | ||||
* | added limited support for filter driverspbr298 | Pete Batard | 2010-08-18 | 1 | -45/+61 |
| | | | | | * first lower filter driver only * driver currently has precedence over filter driver | ||||
* | removed root from list of DDK include pathspbr297 | Pete Batard | 2010-08-17 | 1 | -1/+1 |
| | | | | * fixes an issue where DDK would use the config.h from MinGW/cygwin in root instead of using msvc's | ||||
* | removed _debug suffix for debug DLL | Pete Batard | 2010-08-17 | 3 | -5/+5 |
| | |||||
* | fixed errcode shadow warning in MinGW-w64 (windows backend)pbr296 | Pete Batard | 2010-08-17 | 1 | -8/+8 |
| | |||||
* | fixed errcode shadow warning in MinGW-w64 (core) | Pete Batard | 2010-08-17 | 1 | -2/+2 |
| | |||||
* | restrict scope of previous workaround and return error when possible | Pete Batard | 2010-08-17 | 3 | -9/+18 |
| | |||||
* | only apply previous workaround for 32 bit buildspbr295 | Pete Batard | 2010-08-16 | 3 | -0/+17 |
| | |||||
* | added Workaround for MinGW-w64 multilib bug | Pete Batard | 2010-08-15 | 3 | -5/+38 |
| | | | | | | * current MinGW-w64 32 bit headers (winbase.h) are missing the WINAPI qualifier on Interlocked### calls * this results in missing decorations on symbols and failed linking as a result * this workaround hooks into kernel32.dll for these function calls to alleviate the issue | ||||
* | remove unneeded sanity check in cache_config_descriptorspbr294 | Pete Batard | 2010-08-10 | 2 | -8/+3 |
| | | | | | | | * issue reported by Benjamin Dobell (with additional input from Tim Roberts) * unlike interface numbers, bConfigurationValue are not required to be in order * also produces actual bConfigurationValue in debug output * small whitespace fix in windows_usb.h | ||||
* | removed WinUsb_QueryInterfaceSettings() call in winusb_claim_interface | Pete Batard | 2010-08-10 | 1 | -35/+28 |
| | | | | | | | * issue reported by Benjamin Dobell * WinUsb_QueryInterfaceSettings does not work on any other interface but the first one (WinUSB limitation) * this change should allow the use of WinUSB in lieu of usbccgp * also improvements to core readability | ||||
* | VS 2008 project files now use default for most options | Pete Batard | 2010-08-06 | 4 | -86/+8 |
| | | | | * also fixed DLL generation that was set to MT(d) to using MD(d) | ||||
* | Darwin: Cache device configuration value | Nathan Hjelm | 2010-08-05 | 2 | -51/+75 |
| | | | | | | Cache device configuration value to bring the Darwin backend more in line with the libusb spec. To handle buggy devices GetConfiguration is not called unless the device has more than one configuration. | ||||
* | [INTERNAL - NOT FOR RELEASE] bm.sh improvements | Pete Batard | 2010-08-05 | 1 | -1/+5 |
| | | | | | added -m32 LDFLAGS added DLLTOOLFLAGS for 32 bit multilib generation | ||||
* | creates MinGW and MS DLLs that are fully interchangeablepbr293 | Pete Batard | 2010-08-05 | 4 | -1/+452 |
| | | | | | | | 1. because we use WINAPI, the def file MUST have the @n aliases - there's no way around as MinGW's .o use decoration always for __stdcall, and this can't be turned off 2. our "dumb" autogen create_def() script simply creates the whole range of aliases (we might improve on this in the future) 3. dlltool must be called manually to create the import lib from the def, *with the --kill-at option* 4. a CREATE_IMPORT_LIB autotools variable is introduced to selectively run dlltool or not | ||||
* | more safe string macros improvementspbr292 | Pete Batard | 2010-08-03 | 2 | -4/+6 |
| | |||||
* | fixed bad .def directory for MSVC6 DLL project file | Pete Batard | 2010-08-03 | 1 | -1/+1 |
| | |||||
* | [INTERNAL - NOT FOR RELEASE] include .def in binary snapshot | Pete Batard | 2010-08-02 | 1 | -0/+1 |
| | |||||
* | reverted to using a (generated) .def file for DLL exportspbr291 | Pete Batard | 2010-08-02 | 9 | -80/+157 |
| | | | | | | | | added libusb-1.0.def (plus reference in MS projects) removed LIBUSB_EXP/__declspec(dllexport) from libusb.h removed LIBUSB_DLL_BUILD macros added -Wl,--add-stdcall-alias linker option for MinGW/cygwin for DLL generation added sed script in autogen to update the libusb-1.0.def | ||||
* | minor improvements | Pete Batard | 2010-08-02 | 2 | -14/+14 |
| | | | | | | | | cast pointer to void* for safe_free always use safe_strlen in lieu of strlen avoid the use of a strlen parameter in a macro don't feed negative values to min() in safe_strncat set uninitialized DLL functions to NULL | ||||
* | fixed bad cleanup in winusb_release_interface()pbr290 | Pete Batard | 2010-08-01 | 1 | -2/+3 |
| | | | | also minor fixes (whitespace, debug output) | ||||
* | fixed mishandling of null terminators in safe_strncpy() | Pete Batard | 2010-08-01 | 1 | -1/+1 |
| | |||||
* | fixed bad string duplication for WinUSB pathspbr289 | Pete Batard | 2010-07-31 | 1 | -2/+2 |
| | |||||
* | enforce proper line terminators for MSVC and .sh files | Pete Batard | 2010-07-31 | 17 | -3682/+3689 |
| | |||||
* | more residuals from official: samplespbr288 | Pete Batard | 2010-07-30 | 3 | -18/+5 |
| | |||||
* | more residuals from official: core | Pete Batard | 2010-07-30 | 3 | -13/+5 |
| | |||||
* | more residuals from official: core | Pete Batard | 2010-07-29 | 2 | -3/+2 |
| | |||||
* | fixed residuals from official: autogen.sh | Pete Batard | 2010-07-29 | 1 | -1/+3 |
| | |||||
* | fix -Wshadow warnings for cywginpbr287 | Pete Batard | 2010-07-29 | 1 | -1/+5 |
| | | | | does so by setting gcc to -std=c99 instead -std=gnu99 for MinGW/cygwin | ||||
* | fix missing linefeeds at the end of windows_usb.c/h | Pete Batard | 2010-07-29 | 2 | -2/+2 |
| | |||||
* | removed double entry in AUTHORS | Pete Batard | 2010-07-29 | 1 | -1/+0 |
| | |||||
* | fixed residuals from official for autoconf/automake | Pete Batard | 2010-07-29 | 2 | -17/+13 |
| | |||||
* | fixed -Wshadow compilation errors when using cygwin | Pete Batard | 2010-07-29 | 4 | -31/+23 |
| | | | | NB: this only fixes -Wshadow errors, not -Wshadow warnings | ||||
* | fixed residuals from official for core files | Pete Batard | 2010-07-29 | 4 | -15/+21 |
| | |||||
* | fixed residuals from official for Darwin | Pete Batard | 2010-07-29 | 1 | -0/+5 |
| | |||||
* | [INTERNAL - NOT FOR RELEASE] added MinGW64 to "daily" builds | Pete Batard | 2010-07-29 | 2 | -12/+38 |
| | |||||
* | fixed inconsistencies between prototypes and declarationspbr286 | Xiaofan Chen | 2010-07-29 | 1 | -3/+3 |
| | |||||
* | merged backend integration changes from official branch | Michael Plante | 2010-07-29 | 9 | -51/+75 |
| | |||||
* | fix bashisms | Aurelien Jarno | 2010-07-29 | 1 | -4/+4 |
| | |||||
* | bring autoconf/automake in line with official | Daniel Drake | 2010-07-29 | 3 | -28/+40 |
| | |||||
* | Add reference counting to default contextpbr285 | Daniel Drake | 2010-07-29 | 1 | -10/+38 |
| | | | | | | | | Michael Plante pointed out that if 2 users call libusb_init(NULL) within a process, we end up creating 2 default contexts, one of which is lost. Add reference counting so that the default context is reused and destroyed only after the last user. | ||||
* | Fix libusb_init() error handling | Daniel Drake | 2010-07-29 | 1 | -3/+4 |
| | | | | | | 9996ccaed7 introduced a problem in that mutexes could be destroyed in the error handling codepath before they had been created. Pointed out by Michael Plante. | ||||
* | Darwin: handle kIOReturnUnderrunpbr284 | Hoi-Ho Chan | 2010-07-29 | 2 | -1/+4 |
| | | | | | | This return code indicates that the device returned a data packet less than the max packet size. In libusb backend terms, this is a successful transfer. | ||||
* | Darwin: write iso transfer details into correct packets | Hoi-Ho Chan | 2010-07-29 | 1 | -1/+1 |
| | |||||
* | Darwin: fix interface object leak | Nathan Hjelm | 2010-07-29 | 1 | -1/+4 |
| |