summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* bumped internal versionpbh308Pete Batard2010-10-042-2/+2
|
* Windows enumeration overhaulPete Batard2010-10-042-828/+639
| | | | | | | * changed device enumeration to rely on session ids (hashed device ID) * all enumeration passes now occur in a single call * also removed the separate HCD list (allows PCI hotplug of HCDs) * additional cleanup
* new_enum/hotplug branch: offset 9000Pete Batard2010-10-043-6/+6
|
* bumped internal versionpbr307Pete Batard2010-10-042-2/+2
|
* fixed erroneous checks on SetupDi callsPete Batard2010-10-041-2/+2
|
* bumped internal versionpbr306Pete Batard2010-09-212-2/+2
|
* [INTERNAL - NOT FOR RELEASE] removed string version handling from bump.shPete Batard2010-09-211-3/+1
|
* force the handling of version stringification in the .rcPete Batard2010-09-213-2/+4
| | | | * this removes the version string from libusb_version.h
* fixed missing def entries for function calls with no argsPete Batard2010-09-212-1/+58
| | | | * this is needed for libusb_getversion() in MinGW32
* bumped internal versionpbr305Pete Batard2010-09-212-3/+3
|
* [INTERNAL - NOT FOR RELEASE] added bump.sh scriptPete Batard2010-09-211-0/+35
|
* minor .rc improvementsPete Batard2010-09-211-10/+4
| | | | | * remove no longer needed debug filename * add NUL terminators & official URL
* handle versioning through libusb_version.hPete Batard2010-09-217-938/+67
| | | | | | * libusb_version.h.in is now used to generate libusb_version.h * removes the need for libusb-1.0.rc.in and libusbi.h.in * new LIBUSB_PACKAGE_VERSION added as .rc can't stringify macros
* fixed previous patch and updated .def for new callspbr304Pete Batard2010-09-212-4/+22
|
* Fix a race conditionGraeme Gill2010-09-213-18/+42
| | | | See http://sourceforge.net/mailarchive/message.php?msg_name=4BD920C5.3090909%40argyllcms.com
* Add a missing argument to libusb_wait_for_eventLudovic Rousseau2010-09-211-1/+1
| | | | | | | In the libusb_wait_for_event() sample code for section "Letting other threads do the work for you" libusb_wait_for_event() was used without the struct timeval *tv parameter. The sample code was invalid and could not be compiled.
* Linux: Fix endian handling for usbfs/sysfsHector Martin2010-09-211-2/+2
| | | | | | | | usbfs endian-swaps, sysfs doesn't, not the other way around. This fixes configurator descriptors in big-endian systems when using sysfs. usbfs is untested. Signed-off-by: Hector Martin <hector@marcansoft.com>
* fixed .def generation broken by previous commitpbr303Pete Batard2010-09-202-65/+67
|
* merged latest official changesPete Batard2010-09-2010-96/+184
| | | | * up to e65f69a7ef3de357c867ddaac9598efe407078b6
* replaced LIBUSB_API with LIBUSB_CALLPete Batard2010-09-207-124/+124
|
* added libusb version display to xusbpbr302Pete Batard2010-09-201-0/+3
|
* updated libusb-1.0.def for libusb_getversion()Pete Batard2010-09-201-0/+9
|
* added libusb_getversion()Pete Batard2010-09-204-0/+895
| | | | | * new struct libusb_version has also been defined * libusbi.h.in is now being used to fill in the version from configure.ac
* added libusb version nanoPete Batard2010-09-202-3/+5
|
* 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)