354 Commits

Author SHA1 Message Date
Michael Plante d102dd2399 more default context init fixes 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
2010-04-07 00:10:37 +01:00
Pete Batard a7a96927a3 added toggable debug logging (core) 2010-04-06 21:12:13 +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
2010-04-06 17:30:41 +01:00
Michael Plante ca44c0df7e revert reordering of headers to simplify integration 2010-04-03 02:05:55 +01:00
Pete Batard 150590c345 removed unneeded ssize_t MSVC redefinition from core 2010-04-02 18:07:54 +01:00
Michael Plante a9078469ac updated other files to match 1.0.7 release 2010-04-02 11:11:05 +01:00
Pete Batard 8cb7980c01 removed unnecessary failure during init on USB API error 2010-04-01 12:46:25 +01:00
Pete Batard baa9dc7601 more explicit error codes on semaphore and DLL issues 2010-04-01 11:15:56 +01:00
Pete Batard 99587b5e2d ddk_build improvements (DLL option, static lib default) 2010-03-29 15:41:22 +01:00
Pete Batard 595f4c3ff1 merged latest changes from official 2010-03-25 19:45:18 +00:00
Pete Batard f451c11eb3 revert previous change as well as wchar_to_utf8 to static 2010-03-25 19:22:00 +00:00
Pete Batard fb787f4e67 enabled reuse of windows_error_str for wdi
additional cleanup
2010-03-23 19:42:15 +00:00
Pete Batard ad262a68bb fixed double freeing of fds (reported by Travis Robinson) 2010-03-22 01:18:16 +00:00
Pete Batard ae3a15f6b6 fixed loss of pipe events (reported by Travis Robinson) 2010-03-20 23:20:52 +00:00
Pete Batard af66ec02a9 fixes potential race condition in poll, with pipe fds 2010-03-19 23:08:29 +00:00
Pete Batard bb58fb2754 oops - removed cancel_io emulation debug 2010-03-19 20:38:48 +00:00
Graeme Gill ced538fde1 further simplification of pipe and other improvements 2010-03-19 20:31:36 +00:00
Pete Batard e63267c4bb added MinGW-w64 support
struct timespec was not properly detected as defined and ftime generated warnings
also fixed a missing EOF CR in poll_windows.c (why do these keep disappearing?)
2010-03-19 18:13:37 +00:00
Pete Batard 0758c0d9a9 fixed non duplicated overlapped event in usbi_pipe()
prevents MSVC debug from complaining about invalid handle on CloseHandle()
2010-03-19 16:39:31 +00:00
Pete Batard 585cfa46f3 made sure usbi_close() is only called for the pipe (core) 2010-03-19 16:35:25 +00:00
Pete Batard 6ad309343b fixed "unable to cancel I/O" message on pipe closure (XP) 2010-03-19 13:39:53 +00:00
Pete Batard f569696ea9 libusb_pollfd() now returns an error on Windows 2010-03-18 20:17:19 +00:00
Peter Stuge f43d8e65db removed trailing whitespaces (Windows backend) 2010-03-18 12:44:55 +00:00
Peter Stuge b7d9c71fb3 removed trailing whitespaces (core) 2010-03-18 12:43:34 +00:00
Pete Batard 8978ed4f59 fixed missing mutex for transfer access (Graeme Gill) 2010-03-18 01:14:51 +00:00
Pete Batard 7c8348fff2 simplified pipe/read/write by using a signaling event only 2010-03-18 00:47:42 +00:00
Pete Batard 307f3f4289 readability improvements in poll_windows.c 2010-03-17 14:59:20 +00:00
Pete Batard 070d871037 fixed typos in windows_usb.c (Graeme Gill) 2010-03-17 14:57:54 +00:00
Pete Batard 8715b79e7a fixed problems with previous fix 2010-03-17 01:36:39 +00:00
Pete Batard b92fa32a29 fixed use of original_handle in lieu of handle (Graeme Gill) 2010-03-15 23:08:32 +00:00
Pete Batard f06e130f77 added partial CancelIoEx emulation for XP and earlier
also added warning when CancelIo tries to cancel I/O started
from another thread
2010-03-15 13:54:09 +00:00
Pete Batard 78710622a4 fixed NTSTATUS issue with MinGW (Xiaofan Chen) 2010-03-14 22:51:32 +00:00
Pete Batard 8c1de7a64d remove buggy "completed_synchronously" flag (Graeme Gill)
setting this flag in windows_usb.c could be missed by poll
use the overlapped.Internal status instead
2010-03-12 12:59:04 +00:00
Pete Batard 2b47cdb7c8 fixed continuous polling during timeout (Graeme Gill) 2010-03-11 13:58:32 +00:00
Pete Batard b35a7e03dc moved usbi_fd_notification call after usbi_add_pollfd 2010-03-10 20:39:07 +00:00
Pete Batard 858b13ab77 moved libusb-1.0.rc to libusb/ (where the .def is located) 2010-03-06 00:37:21 +00:00
Pete Batard 122229e5f9 added .rc info to DLLs produced with MinGW/cygwin 2010-03-05 20:11:14 +00:00
Pete Batard 842c719c2f fixed unref of devices that already exist (Travis Robinson) 2010-03-05 00:13:51 +00:00
Pete Batard 51509cff24 small improvements and cleanup suggested by Graeme Gill 2010-03-04 16:00:51 +00:00
Pete Batard 90b88cbddf fixed uint64_t warnings (Graeme Gill) 2010-03-04 00:25:14 +00:00
Pete Batard 666106e836 more residual cleanup (Michael Plante) 2010-03-03 20:36:46 +00:00
Pete Batard bb23fcc74b removed unneeded CMAPI definition 2010-03-03 20:32:24 +00:00
Pete Batard 5ca0d11008 residual corrections from previous commits (Michael Plante) 2010-03-03 20:19:44 +00:00
Pete Batard ad460bca72 dynamically load Cfgmgr32.dll exports (Graeme Gill) 2010-03-03 20:17:15 +00:00
Pete Batard b25d4fd10c better fix for poll_dbg and MSVC6 2010-03-02 20:46:46 +00:00
Pete Batard f20223074c removed poll_dbg to keep MSVC6 users happy 2010-03-02 20:34:35 +00:00
Pete Batard efee8c0871 fixed cygwin warning with poll_dbg 2010-03-02 16:18:27 +00:00
Pete Batard 32f130a540 renamed windows_compat to poll_windows 2010-03-02 16:13:33 +00:00