607 Commits

Author SHA1 Message Date
Pete Batard 46b1c51e94 bumped internal version pbr310 2010-10-06 13:37:26 +01:00
Pete Batard 7b54f2789d fixed missing $M_LDFLAGS from libusb/Makefile.am
* problem was introduced by recent -version-info patch from official
2010-10-06 13:34:01 +01:00
Pete Batard 0ee1745f01 bumped internal version pbr309 2010-10-05 19:49:47 +01:00
Pete Batard af66e5a985 fixed missed index -> _index in poll_windows.c debug messages
* follow up from cygwin shadow warning fix
2010-10-05 19:49:39 +01:00
Pete Batard a5ea045efa bumped internal version pbr308 2010-10-05 14:07:51 +01:00
Pete Batard 34dd9c8bfe fixed index shadow warnings from cygwin (from official) 2010-10-05 14:07:43 +01:00
Pete Batard e0e7ffde56 small fixup to be in check with proposed official 2010-10-05 12:53:31 +01:00
Mike Frysinger d4de93e6e9 Populate the pkg-config Libs.private field 2010-10-05 11:55:47 +01:00
Mike Frysinger 96a33edad3 Linux: fix build failure when CLOCK_MONOTONIC does not exist
This is not available on all platforms.
2010-10-05 11:53:18 +01:00
Daniel Drake 9e172a7829 Update libtool version info
With input from various people on the mailing list, update the libtool
versioning info and start to update this on every release.

The next libusb release will not need a change here. All following ones will.
2010-10-05 11:53:05 +01:00
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