summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Darwin: clean up some debug messagesNathan Hjelm2010-07-291-3/+3
|
* Darwin: Don't open devices during scan unless we have to unsuspendNathan Hjelm2010-07-291-6/+10
|
* Linux: Handle early complete of multi-URB transferPeter Stuge2010-07-291-5/+13
|
* Linux: Fix log message commitDaniel Drake2010-07-291-2/+3
| | | | Forgot to test this.
* Only initialize the default context when it is requestedLudovic Rousseau2010-07-291-2/+7
|
* Linux: fix log message that was being unconditionally sent to stderr (#44)Daniel Drake2010-07-291-4/+3
| | | | | | | | | | This message was put in place to aid libusb-compat-0.1 users, who may run into the change that libusb-0.1 allowed you to usb_open() a device that you don't have write access to, but libusb-1.0 does not. As explained on the ticket this change is dangerous so it should go through the usual logging mechanism. I also added a similar regular log message to libusb-compat-0.1.
* improved readout of string descriptors in xusbpbr283Pete Batard2010-06-141-8/+12
| | | | reads man/prod/ser strings using the relevant string index
* fixed string indexes being ignored by HIDPete Batard2010-06-142-29/+39
| | | | issue reported by Axel Rohde
* Fix 2 documentation typospbr282Ludovic Rousseau2010-06-111-2/+2
|
* add AM_MAINTAINER_MODELudovic Rousseau2010-06-111-0/+2
|
* added usbi_fd_notification to libusbi.hPete Batard2010-06-111-0/+1
| | | | (official's fc0af8e3f76925ad09e0fbc6d233d500753ee375)
* [INTERNAL - NOT FOR RELEASE] attempt to workaround trac issuesPete Batard2010-06-091-1/+1
|
* additional HID error messagespbr281Pete Batard2010-05-241-5/+9
|
* improved auto-release with support for concurrent auto-claimPete Batard2010-05-242-70/+127
| | | | also switched to using the __device_handle_priv macro everywhere and factorized the autoclaim/autorelease calls.