597 Commits

Author SHA1 Message Date
Pete Batard 55b62476e3 bumped internal version pbr307 2010-10-04 13:39:43 +01:00
Pete Batard cf1b3cf3e9 fixed erroneous checks on SetupDi calls 2010-10-04 13:31:56 +01:00
Pete Batard 2590159c40 bumped internal version pbr306 2010-09-21 15:44:53 +01:00
Pete Batard 91bb08eaba [INTERNAL - NOT FOR RELEASE] removed string version handling from bump.sh 2010-09-21 15:44:44 +01:00
Pete Batard c9502f2d1c force the handling of version stringification in the .rc
* this removes the version string from libusb_version.h
2010-09-21 15:42:30 +01:00
Pete Batard 54e0ee800d fixed missing def entries for function calls with no args
* this is needed for libusb_getversion() in MinGW32
2010-09-21 15:24:22 +01:00
Pete Batard f391318695 bumped internal version pbr305 2010-09-21 13:51:26 +01:00
Pete Batard 73a263bf20 [INTERNAL - NOT FOR RELEASE] added bump.sh script 2010-09-21 13:51:18 +01:00
Pete Batard 0c3fdebd60 minor .rc improvements
* remove no longer needed debug filename
* add NUL terminators & official URL
2010-09-21 12:10:55 +01:00
Pete Batard 9b4ff54b66 handle versioning through libusb_version.h
* 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
2010-09-21 11:58:00 +01:00
Pete Batard b9ce8875aa fixed previous patch and updated .def for new calls pbr304 2010-09-21 11:05:28 +01:00
Graeme Gill b9823a693e Fix a race condition
See http://sourceforge.net/mailarchive/message.php?msg_name=4BD920C5.3090909%40argyllcms.com
2010-09-21 10:51:38 +01:00
Ludovic Rousseau 6bbdc6128f Add a missing argument to libusb_wait_for_event
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.
2010-09-21 10:47:20 +01:00
Hector Martin 5e6cff30dc Linux: Fix endian handling for usbfs/sysfs
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>
2010-09-21 10:40:39 +01:00
Pete Batard 46c16ccbf7 fixed .def generation broken by previous commit pbr303 2010-09-20 23:51:39 +01:00
Pete Batard 6a3c5a6fa4 merged latest official changes
* up to e65f69a7ef
2010-09-20 16:09:23 +01:00
Pete Batard dfc99bb006 replaced LIBUSB_API with LIBUSB_CALL 2010-09-20 15:39:26 +01:00
Pete Batard 94039837f6 added libusb version display to xusb pbr302 2010-09-20 13:28:04 +01:00
Pete Batard 3713ffddf4 updated libusb-1.0.def for libusb_getversion() 2010-09-20 13:27:31 +01:00
Pete Batard 8afd26e510 added libusb_getversion()
* new struct libusb_version has also been defined
* libusbi.h.in is now being used to fill in the version from configure.ac
2010-09-20 13:27:00 +01:00
Pete Batard a1f3c26bfa added libusb version nano 2010-09-20 13:25:18 +01:00
Pete Batard 195e7beb2a fixed missing winioctl.h header for cygwin pbr301 2010-09-06 17:15:23 +01:00
Pete Batard 35f01dd9b1 use IOCTLs for HID reports (input, output, feature)
* 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
2010-09-06 16:54:41 +01:00
Pete Batard 16cb5e2e87 [INTERNAL - NOT FOR RELEASE] binary snapshots improvements
* one set of examples (static ones)
* adds examples source
* examples at root
2010-08-23 12:33:48 +01:00
Pete Batard 5006604a96 workaround for unavailable _strdup on MinGW32 pbr300 2010-08-21 01:29:36 +01:00
Pete Batard 34582d44ac fixed possible buffer overflow in windows_error_str()
* also added removal of CR/LF
pbr299
2010-08-19 16:27:08 +01:00
Pete Batard d981c21632 added full support for filter drivers
* precedence is driver > upper filter > lower filter and defined
  in struct driver_lookup lookup from set_device_paths()
2010-08-19 16:18:25 +01:00
Pete Batard e68165152f added limited support for filter drivers
* first lower filter driver only
* driver currently has precedence over filter driver
pbr298
2010-08-18 21:25:05 +01:00
Pete Batard 443ee055b2 removed root from list of DDK include paths
* fixes an issue where DDK would use the config.h from MinGW/cygwin in root instead of using msvc's
pbr297
2010-08-17 16:26:14 +01:00
Pete Batard 02043e6e0e removed _debug suffix for debug DLL 2010-08-17 15:49:14 +01:00
Pete Batard bff90e0aa9 fixed errcode shadow warning in MinGW-w64 (windows backend) pbr296 2010-08-17 13:40:23 +01:00
Pete Batard ebe4dbd2ef fixed errcode shadow warning in MinGW-w64 (core) 2010-08-17 13:35:44 +01:00
Pete Batard da2cf62775 restrict scope of previous workaround and return error when possible 2010-08-17 13:33:01 +01:00
Pete Batard 2ffa5342c4 only apply previous workaround for 32 bit builds pbr295 2010-08-16 23:48:00 +01:00
Pete Batard 3cbb8af874 added Workaround for MinGW-w64 multilib bug
* 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
2010-08-15 21:44:13 +01:00
Pete Batard 689d78a063 remove unneeded sanity check in cache_config_descriptors
* 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
pbr294
2010-08-10 19:46:59 +01:00
Pete Batard d059be54ca removed WinUsb_QueryInterfaceSettings() call in winusb_claim_interface
* 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
2010-08-10 19:46:56 +01:00
Pete Batard 9daf8200f0 VS 2008 project files now use default for most options
* also fixed DLL generation that was set to MT(d) to using MD(d)
2010-08-06 18:55:17 +01:00
Nathan Hjelm e2e354d519 Darwin: Cache device configuration value
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.
2010-08-05 11:08:38 +01:00
Pete Batard f901e14356 [INTERNAL - NOT FOR RELEASE] bm.sh improvements
added -m32 LDFLAGS
added DLLTOOLFLAGS for 32 bit multilib generation
2010-08-05 01:35:50 +01:00
Pete Batard 30b42bc654 creates MinGW and MS DLLs that are fully interchangeable
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
pbr293
2010-08-05 01:33:49 +01:00
Pete Batard d91b872c4c more safe string macros improvements pbr292 2010-08-03 11:50:22 +01:00
Pete Batard f5e41f3b7b fixed bad .def directory for MSVC6 DLL project file 2010-08-03 01:44:20 +01:00
Pete Batard fce997a8c6 [INTERNAL - NOT FOR RELEASE] include .def in binary snapshot 2010-08-02 23:17:36 +01:00
Pete Batard 7f4f7bd753 reverted to using a (generated) .def file for DLL exports
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
pbr291
2010-08-02 23:13:17 +01:00
Pete Batard c9b0a3b82e minor improvements
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
2010-08-02 12:40:24 +01:00
Pete Batard 8b5f31e568 fixed bad cleanup in winusb_release_interface()
also minor fixes (whitespace, debug output)
pbr290
2010-08-01 23:31:20 +01:00
Pete Batard 8c3473b0ca fixed mishandling of null terminators in safe_strncpy() 2010-08-01 22:09:29 +01:00
Pete Batard 48ce4304c8 fixed bad string duplication for WinUSB paths pbr289 2010-07-31 01:54:21 +01:00
Pete Batard b5820d34ad enforce proper line terminators for MSVC and .sh files 2010-07-31 01:03:39 +01:00