summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fixed missing winioctl.h header for cygwinpbr301Pete Batard2010-09-061-0/+1
|
* use IOCTLs for HID reports (input, output, feature)Pete Batard2010-09-062-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 improvementsPete Batard2010-08-232-20/+15
| | | | | | * one set of examples (static ones) * adds examples source * examples at root
* workaround for unavailable _strdup on MinGW32pbr300Pete Batard2010-08-211-1/+6
|
* fixed possible buffer overflow in windows_error_str()pbr299Pete Batard2010-08-191-4/+9
| | | | * also added removal of CR/LF
* added full support for filter driversPete Batard2010-08-192-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 driverspbr298Pete Batard2010-08-181-45/+61
| | | | | * first lower filter driver only * driver currently has precedence over filter driver
* removed root from list of DDK include pathspbr297Pete Batard2010-08-171-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 DLLPete Batard2010-08-173-5/+5
|
* fixed errcode shadow warning in MinGW-w64 (windows backend)pbr296Pete Batard2010-08-171-8/+8
|
* fixed errcode shadow warning in MinGW-w64 (core)Pete Batard2010-08-171-2/+2
|
* restrict scope of previous workaround and return error when possiblePete Batard2010-08-173-9/+18
|
* only apply previous workaround for 32 bit buildspbr295Pete Batard2010-08-163-0/+17
|
* added Workaround for MinGW-w64 multilib bugPete Batard2010-08-153-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_descriptorspbr294Pete Batard2010-08-102-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_interfacePete Batard2010-08-101-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 optionsPete Batard2010-08-064-86/+8
| | | | * also fixed DLL generation that was set to MT(d) to using MD(d)
* Darwin: Cache device configuration valueNathan Hjelm2010-08-052-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 improvementsPete Batard2010-08-051-1/+5
| | | | | added -m32 LDFLAGS added DLLTOOLFLAGS for 32 bit multilib generation
* creates MinGW and MS DLLs that are fully interchangeablepbr293Pete Batard2010-08-054-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 improvementspbr292Pete Batard2010-08-032-4/+6
|
* fixed bad .def directory for MSVC6 DLL project filePete Batard2010-08-031-1/+1
|
* [INTERNAL - NOT FOR RELEASE] include .def in binary snapshotPete Batard2010-08-021-0/+1
|
* reverted to using a (generated) .def file for DLL exportspbr291Pete Batard2010-08-029-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 improvementsPete Batard2010-08-022-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()pbr290Pete Batard2010-08-011-2/+3
| | | | also minor fixes (whitespace, debug output)
* fixed mishandling of null terminators in safe_strncpy()Pete Batard2010-08-011-1/+1
|
* fixed bad string duplication for WinUSB pathspbr289Pete Batard2010-07-311-2/+2
|
* enforce proper line terminators for MSVC and .sh filesPete Batard2010-07-3117-3682/+3689
|
* more residuals from official: samplespbr288Pete Batard2010-07-303-18/+5
|
* more residuals from official: corePete Batard2010-07-303-13/+5
|
* more residuals from official: corePete Batard2010-07-292-3/+2
|
* fixed residuals from official: autogen.shPete Batard2010-07-291-1/+3
|
* fix -Wshadow warnings for cywginpbr287Pete Batard2010-07-291-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/hPete Batard2010-07-292-2/+2
|
* removed double entry in AUTHORSPete Batard2010-07-291-1/+0
|
* fixed residuals from official for autoconf/automakePete Batard2010-07-292-17/+13
|
* fixed -Wshadow compilation errors when using cygwinPete Batard2010-07-294-31/+23
| | | | NB: this only fixes -Wshadow errors, not -Wshadow warnings
* fixed residuals from official for core filesPete Batard2010-07-294-15/+21
|
* fixed residuals from official for DarwinPete Batard2010-07-291-0/+5
|
* [INTERNAL - NOT FOR RELEASE] added MinGW64 to "daily" buildsPete Batard2010-07-292-12/+38
|
* fixed inconsistencies between prototypes and declarationspbr286Xiaofan Chen2010-07-291-3/+3
|
* merged backend integration changes from official branchMichael Plante2010-07-299-51/+75
|
* fix bashismsAurelien Jarno2010-07-291-4/+4
|
* bring autoconf/automake in line with officialDaniel Drake2010-07-293-28/+40
|
* Add reference counting to default contextpbr285Daniel Drake2010-07-291-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 handlingDaniel Drake2010-07-291-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 kIOReturnUnderrunpbr284Hoi-Ho Chan2010-07-292-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 packetsHoi-Ho Chan2010-07-291-1/+1
|
* Darwin: fix interface object leakNathan Hjelm2010-07-291-1/+4
|