485 Commits

Author SHA1 Message Date
Peter Stuge 8bd50e2b23 [INTERNAL - NOT FOR RELEASE] added libusb-1.0.rc generated file r261 2010-04-18 23:30:10 +01:00
Peter Stuge 243760885e configure creates libusb-1.0.rc to not duplicate the version number 2010-04-18 23:24:36 +01:00
Pete Batard 307c5490de added missing calling convention for callbacks in dpfp
also whitespaces in dpfp.c
2010-04-18 23:15:33 +01:00
Pete Batard 9c896f5d98 switched DDK calling convention for examples to __cdecl r260 2010-04-18 23:01:44 +01:00
Michael Plante 37e8bf5fdd removed unneeded (and problematic) _WINDOWS_ reference r259 2010-04-18 22:44:54 +01:00
Michael Plante 6ab85d8b64 removed calling convention modifier for inlines (resid) r258 2010-04-18 22:32:02 +01:00
Pete Batard a14e247af5 updated documentation for unsupported darwin/Windows calls
attach/detach_kernel_driver and kernel_driver_active (Windows)
r257
2010-04-17 01:01:54 +01:00
Pete Batard f9e9c989b9 fixed function brace consistency in windows_usb.c 2010-04-17 00:59:54 +01:00
Pete Batard d78d2341ea revert r253 / f08aae4ddb 2010-04-17 00:58:22 +01:00
Pete Batard 3a4c4fc6c9 MinGW/cygwin advapi32 library dependency (configure.ac) r256 2010-04-16 23:36:00 +01:00
Pete Batard 3c06787b84 DDK build (sources) advapi32.lib dependency
also removed unneeded user32.lib dependency from libusb_sources (suggested by Michael Plante)
2010-04-16 23:35:01 +01:00
Pete Batard ea272ad88b [INTERNAL - NOT FOR RELEASE] MSVC 2008 advapi.lib dependency 2010-04-16 23:32:55 +01:00
Pete Batard d70641755c added advapi32.lib dependency reference in xusb.c 2010-04-16 23:31:50 +01:00
Pete Batard 36feab98b2 removed calling convention modifier for inlines
to be merged with 511f5b9fdf
r255
2010-04-16 15:25:25 +01:00
Pete Batard fc2b212758 better handling of attach/detach for Linux in xusb.c r254 2010-04-16 10:47:37 +01:00
Tim Roberts 32a674508a added more explicit library dependencies in xusb.c (MSVC) 2010-04-16 10:27:33 +01:00
Pete Batard 9c835700e5 [INTERNAL - NOT FOR RELEASE] added 2003/XP64 support (EXPERIMENTAL) 2010-04-16 00:03:57 +01:00
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