Xiaofan Chen
9a515b7da4
fixed inconsistencies between prototypes and declarations
pbr286
2010-07-29 13:30:48 +01:00
Michael Plante
f0c40ad811
merged backend integration changes from official branch
2010-07-29 13:11:49 +01:00
Aurelien Jarno
96cd678c93
fix bashisms
2010-07-29 12:45:30 +01:00
Daniel Drake
435760539e
bring autoconf/automake in line with official
2010-07-29 12:42:25 +01:00
Daniel Drake
1867c7103b
Add reference counting to default context
...
Michael Plante pointed out that if 2 users call libusb_init(NULL) within
a process, we end up creating 2 default contexts, one of which is lost.
Add reference counting so that the default context is reused and
destroyed only after the last user.
pbr285
2010-07-29 12:18:45 +01:00
Daniel Drake
30b5fbb87c
Fix libusb_init() error handling
...
9996ccaed7 introduced a problem in that mutexes could be destroyed
in the error handling codepath before they had been created.
Pointed out by Michael Plante.
2010-07-29 11:56:55 +01:00
Hoi-Ho Chan
f1cc768c9f
Darwin: handle kIOReturnUnderrun
...
This return code indicates that the device returned a data packet
less than the max packet size. In libusb backend terms, this is
a successful transfer.
pbr284
2010-07-29 11:25:18 +01:00
Hoi-Ho Chan
8f014a89fb
Darwin: write iso transfer details into correct packets
2010-07-29 11:25:11 +01:00
Nathan Hjelm
82cb50a5ab
Darwin: fix interface object leak
2010-07-29 11:24:56 +01:00
Nathan Hjelm
a58e3973ad
Darwin: clean up some debug messages
2010-07-29 11:24:51 +01:00
Nathan Hjelm
fd040e48bb
Darwin: Don't open devices during scan unless we have to unsuspend
2010-07-29 11:24:44 +01:00
Peter Stuge
bfd95f6a63
Linux: Handle early complete of multi-URB transfer
2010-07-29 11:24:35 +01:00
Daniel Drake
db223f0879
Linux: Fix log message commit
...
Forgot to test this.
2010-07-29 11:20:54 +01:00
Ludovic Rousseau
65faf21426
Only initialize the default context when it is requested
2010-07-29 11:19:17 +01:00
Daniel Drake
68052b3371
Linux: fix log message that was being unconditionally sent to stderr ( #44 )
...
This message was put in place to aid libusb-compat-0.1 users, who
may run into the change that libusb-0.1 allowed you to usb_open() a
device that you don't have write access to, but libusb-1.0 does not.
As explained on the ticket this change is dangerous so it should go through
the usual logging mechanism. I also added a similar regular log message
to libusb-compat-0.1.
2010-07-29 11:17:35 +01:00
Pete Batard
1ebd8c9052
improved readout of string descriptors in xusb
...
reads man/prod/ser strings using the relevant string index
pbr283
2010-06-14 22:07:19 +01:00
Pete Batard
207f9744b5
fixed string indexes being ignored by HID
...
issue reported by Axel Rohde
2010-06-14 18:50:39 +01:00
Ludovic Rousseau
593eac205d
Fix 2 documentation typos
pbr282
2010-06-11 10:20:24 +01:00
Ludovic Rousseau
8732049ff3
add AM_MAINTAINER_MODE
2010-06-11 10:20:21 +01:00
Pete Batard
c2e1ab94d9
added usbi_fd_notification to libusbi.h
...
(official's fc0af8e3f7 )
2010-06-11 10:18:17 +01:00
Pete Batard
ca21ddfa42
[INTERNAL - NOT FOR RELEASE] attempt to workaround trac issues
2010-06-09 13:57:27 +01:00
Pete Batard
6c18964a6d
additional HID error messages
pbr281
2010-05-24 20:33:16 +01:00
Pete Batard
63f97c600e
improved auto-release with support for concurrent auto-claim
...
also switched to using the __device_handle_priv macro everywhere and factorized the autoclaim/autorelease calls.
2010-05-24 20:22:59 +01:00
Pete Batard
5d23127898
added auto-release to autoclaim
pbr280
2010-05-24 15:41:33 +01:00
Pete Batard
1688e69d7c
use LIBUSB_DEVADDR_MAX for HCDs
...
Using 0 can conflict with driverless devices.
pbr279
2010-05-21 13:43:59 +01:00
Pete Batard
006828e61c
additional warning fixes & clarification for DDK's OACR/Prefast
2010-05-21 12:14:46 +01:00
Pete Batard
c8a7c320b6
re-enabled autoclaim + fixed autoclaim related ifdefs
2010-05-21 12:13:08 +01:00
Pete Batard
77fb9c63d7
changed the DuplicateHandle failure from warning to debug
...
This is because WinUSB handles are not duplicable, and generate a lot of these warnings.
2010-05-21 11:40:43 +01:00
Pete Batard
9aa04bfba8
removed DDK timeval redefinitions - include winsock instead
pbr278
2010-05-18 12:52:54 +01:00
Pete Batard
3ca89838af
fixed remaining warnings due to autoclaim removal
pbr277
2010-05-17 15:42:39 +01:00
Pete Batard
ffb9d6b415
moved static modifier from thread_posix.h to core.c
pbr276
2010-05-11 00:37:15 +01:00
Pete Batard
0e74019d22
added detection of -pthread option - only use when required
2010-05-11 00:36:46 +01:00
Pete Batard
71eaaccde2
disabled autoclaim in windows_usb.c and removed its use in xusb.c
r275
2010-05-05 23:07:18 +01:00
Pete Batard
91f223d55c
removed further MS generated data + bump version to 1.0.8
r274
2010-05-05 22:28:41 +01:00
Pete Batard
3d02394763
removed unneeded MS generated data from .rc and .rc.in
r273
2010-05-05 18:34:11 +01:00
Pete Batard
a2b1e37824
fixed issue with composite using HID keyboard on interface 0
...
issue reported by Jason Kotzin
also improved auto-claim functionality
r272
2010-04-27 14:03:26 +01:00
Michael Plante
4242ac1b31
added threads_windows to source browser
r271
2010-04-26 19:11:11 +01:00
Daniel Drake
8c7b772f61
Linux: don't set SHORT_NOT_OK on bulk out URBs ( #20
...
Setting this flag is illegal, and the behaviour we're looking for
is already in place for host-to-device transfers without this flag.
r270
2010-04-24 11:24:54 +01:00
Michael Plante
bd62c472c4
[INTERNAL - NOT FOR RELEASE] updated generated rc file for 1.0.7
2010-04-24 11:19:51 +01:00
Michael Plante
4226f9ee90
general whitespace cleanup
2010-04-24 11:18:56 +01:00
Daniel Drake
21bdd21e59
Linux: Handle failure to read active configuration during enumeration
r269
2010-04-21 18:13:53 +01:00
Nathan Hjelm
002cdfaf85
Darwin: don't reuse cached descriptors during enumeration
...
Descriptor reuse was causing scans to return invalid information when
the device at a location has changed.
2010-04-21 18:13:53 +01:00
Peter Stuge
143014a928
autoconf needs to check for struct timespec
r268
2010-04-20 15:39:18 +01:00
Pete Batard
6fe25e5742
residuals from previous merge
r267
2010-04-20 15:32:18 +01:00
Pete Batard
e3d7fc014b
merged official 1.0.6 -> 1.0.7 release changes
2010-04-20 15:26:47 +01:00
Michael Plante
4ab789bb91
clarified ddk build procedure
r266
2010-04-19 23:04:27 +01:00
Pete Batard
b7c99f781f
added official libtool NLS patch for Chinese locale
r265
2010-04-19 13:26:31 +01:00
Pete Batard
63edc0276d
restore builds of DLLs from the DDK
r264
2010-04-19 11:56:33 +01:00
Michael Plante
7e0a17af9d
removed need for .def file, added LIBUSB_EXP
r263
2010-04-19 03:23:16 +01:00
Pete Batard
9305fa4751
improved windows_assign_endpoints (debug msg + error codes)
r262
2010-04-19 02:09:53 +01:00