468 Commits

Author SHA1 Message Date
Pete Batard f08aae4ddb LIBUSB_SUCCESS on attach/detach for darwin & Windows r253 2010-04-15 23:52:08 +01:00
Pete Batard 4ebacb3868 darwin whitespaces 2010-04-15 23:47:35 +01:00
Michael Plante 72ae0acd27 added mingw *.exe output to gitignore and fixed whites r252 2010-04-15 23:27:56 +01:00
Michael Plante 630747c549 more explicit toggable debug options
also re-added usbi_dbg() default context creation message
2010-04-15 23:25:28 +01:00
Michael Plante 0b64e01b61 let MSVC re-sort filenames based on very old renames 2010-04-15 23:22:28 +01:00
Michael Plante 1597a94532 reverted to MS defaults in MSVC6 .dsp project file 2010-04-15 23:21:33 +01:00
Michael Plante 32fb3bae54 added missing LIBUSB_API for transfer_cb function calls 2010-04-15 23:19:44 +01:00
Pete Batard 5bf154f47d fixed HID bulk/interrupt transfers for report IDs r251 2010-04-15 23:14:04 +01:00
Pete Batard c3650052a9 [INTERNAL - NOT FOR RELEASE] added libusb.h copy to bins 2010-04-15 23:12:56 +01:00
Pete Batard 7baf86a379 reverted to MS defaults in .vcproj DLL file (internal 2008)
The calling convention is now explicitly defined elsewhere
r250
2010-04-13 23:37:06 +01:00
Pete Batard d4476548fd reverted to MS defaults in .vcproj DLL file (official)
The calling convention is now explicitly defined elsewhere
2010-04-13 23:36:43 +01:00
Pete Batard 511f5b9fdf set default calling convention for Windows platform (core)
no calling convention is set on non Windows platforms as using
__attribute__((cdecl)) is source of potential warnings.
2010-04-13 23:32:45 +01:00
Pete Batard 26a0c962b1 fixed the use of internal OS_WINDOWS in general file libusb.h
OS_WINDOWS is only defined in the context of compiling libusb
switched to using the explicit MinGW/cygwin and MS compiler defines
2010-04-13 23:29:27 +01:00
Pete Batard 88b71cdf23 fixed handing of HID reports when report IDs are in use
also switched to USE_HIDD_FOR_REPORTS in windows_usb.c, to be closer to Linux behaviour.
issue originally reported by Axel Rohde
r249
2010-04-12 20:14:06 +01:00
Pete Batard 9300883d04 set default messaging level to warnings in xusb r248 2010-04-08 13:30:17 +01:00
Pete Batard 0145d9f15a added missing LOG_LEVEL_DEBUG filter for toggable debug (core) 2010-04-08 13:29:19 +01:00
Pete Batard 31aff02b62 fixed "ignoring return value of 'fwrite'" warning with gcc r247 2010-04-08 12:40:54 +01:00
Pete Batard c1cea1b0fe addressed MSVC warnings prompted by previous change r246 2010-04-08 12:33:27 +01:00
Pete Batard e295c065f3 added binary dump option to xusb (-b)
also switched boolean variables to actual bool
2010-04-08 12:30:06 +01:00
Pete Batard 2ec0c2b1ff fixed HID record size computation in xusb 2010-04-08 11:48:58 +01:00
Pete Batard bb3280741d workaround for MS's HidD_GetFeature bug with report IDs
When report IDs are in use, the payload starts at buffer+0 not buffer+1
as indicated at http://msdn.microsoft.com/en-us/library/ff538910.aspx

Bug reported by Axel Rohde
2010-04-08 11:46:55 +01:00
Michael Plante d102dd2399 more default context init fixes r245 2010-04-07 11:22:31 +01:00
Martin Koegler c73ee65a51 Linux: Fix endianness handling of usbfs config descriptors (#27)
driver/usb/core/devio.c function usbdev_read translate the follwing files
to CPU endianess:

le16_to_cpus(&temp_desc.bcdUSB);
le16_to_cpus(&temp_desc.idVendor);
le16_to_cpus(&temp_desc.idProduct);
le16_to_cpus(&temp_desc.bcdDevice);

All other data is passed without any change.

libusb/os/linux_usbfs.c calls usbi_parse_descriptor with host_endian=1
for config descriptors. According to the kernel code, they must be
processed with host_endian=0, as they are not translated by the kernel.

Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
2010-04-07 11:11:28 +01:00
Pete Batard a055a56cf1 fixed default context issue introduced from previous patch
also added MSVC6 support for toggable logging
All of the above suggested by Michael Plante
r244
2010-04-07 00:10:37 +01:00
Pete Batard 767bd7a6eb [INTERNAL - NOT FOR RELEASE] added toggable debug logging to bm.sh 2010-04-06 21:13:57 +01:00
Pete Batard a46b420214 added toggable debug logging (MSVC) r243 2010-04-06 21:12:47 +01:00
Pete Batard a7a96927a3 added toggable debug logging (core) 2010-04-06 21:12:13 +01:00
Pete Batard adc0945982 fixed arglen warning from previous commit r242 2010-04-06 20:21:45 +01:00
Pete Batard b52b131343 xusb improvements (parameter handling + debug enable) r241 2010-04-06 20:20:01 +01:00
Michael Plante d908e70163 Added missing Feature Report descriptor feature
also allowed the use of LIBUSB_RECIPIENT_DEVICE in _hid_class_request
Issue reported by Axel Rohde
r240
2010-04-06 17:30:41 +01:00
Michael Plante e5a9ce5865 xusb HID test improvements (Feature Reports)
Issue reported by Axel Rohde
2010-04-06 17:26:09 +01:00
Michael Plante ca44c0df7e revert reordering of headers to simplify integration r239 2010-04-03 02:05:55 +01:00
Pete Batard a5fc611142 stdint.h fixes for MSVC6 r238 2010-04-02 18:37:21 +01:00
Pete Batard 150590c345 removed unneeded ssize_t MSVC redefinition from core r237 2010-04-02 18:07:54 +01:00
Pete Batard d4ae5cd66d use public domain inttypes.h and stdint.h (from MinGW-w64) r236 2010-04-02 14:00:56 +01:00
Michael Plante a9078469ac updated other files to match 1.0.7 release r235 2010-04-02 11:11:05 +01:00
Michael Plante 7f447549b7 updated AUTHORS 2010-04-02 11:10:42 +01:00
Pete Batard 8cb7980c01 removed unnecessary failure during init on USB API error r234 2010-04-01 12:46:25 +01:00
Pete Batard e58e19dec2 [INTERNAL - NOT FOR RELEASE] removed debug logging for bm 2010-04-01 11:35:40 +01:00
Pete Batard baa9dc7601 more explicit error codes on semaphore and DLL issues r233 2010-04-01 11:15:56 +01:00
Pete Batard f9e40cc5ba [INTERNAL - NOT FOR RELEASE] added binary snapshot batches 2010-04-01 11:15:10 +01:00
Michael Plante 66192f7b43 added dpfp_threaded binary to gitignore r232 2010-03-30 01:32:28 +01:00
Pete Batard 3b9f2d3288 commented out ENABLE_DEBUG_LOGGING for release r231 2010-03-29 16:30:23 +01:00
Pete Batard 99587b5e2d ddk_build improvements (DLL option, static lib default) r230 2010-03-29 15:41:22 +01:00
Michael Plante db8c3ff754 removed whitespaces in configure.ac 2010-03-29 12:47:35 +01:00
Pete Batard d6f6802daf small improvements to ddk_build.cmd r229 2010-03-27 19:13:27 +00:00
Pete Batard fed2c79866 configure.ac improvements (threads detection, AC_INIT) r228 2010-03-26 18:03:15 +00:00
Pete Batard 595f4c3ff1 merged latest changes from official r227 2010-03-25 19:45:18 +00:00
Pete Batard f451c11eb3 revert previous change as well as wchar_to_utf8 to static r226 2010-03-25 19:22:00 +00:00
Pete Batard fb787f4e67 enabled reuse of windows_error_str for wdi
additional cleanup
r225
2010-03-23 19:42:15 +00:00