17 Commits

Author SHA1 Message Date
Michael Plante f0c40ad811 merged backend integration changes from official branch 2010-07-29 13:11:49 +01:00
Pete Batard e3d7fc014b merged official 1.0.6 -> 1.0.7 release changes 2010-04-20 15:26:47 +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
Michael Plante a9078469ac updated other files to match 1.0.7 release 2010-04-02 11:11:05 +01:00
Pete Batard c83b94c78f merge abstraction for POSIX Threads and integration changes (Michael Plante, Peter Stuge)
v1.0.6 release

Darwin: support multiple calls to libusb_init
Credit to Orin Eman for finding this bug.

Darwin: use logging functions
Use usbi_warn, usbi_err, and usbi_info instead of _usbi_log.

Darwin: fix memory leak in process_device
Credit to Mike Colagrosso for finding this bug.

Add internal abstraction for POSIX Threads
This prepares for a Windows backend without dependency on pthreads-w32.

pthread_* is renamed to usbi_* and PTHREAD_* to USBI_*.

A usbi_mutex_static_t and usbi_mutex_static_lock() and _unlock() are
introduced for statically initialized mutexes, since they may be
implemented using other types when pthreads mutexes aren't used.

Move -pthread from libusb/Makefile.am to host-specific AM_CFLAGS in
configure.ac. AM_CFLAGS is already used in Makefile.am.

(Numerous merge conflicts resolved by Michael Plante)

misc fixes to pthreads abstraction
* windows_compat.h should not be directly included (use libusbi.h)
* windows_usb.c still had some references to pthread_mutex_[un]lock

Add libusb_strerror() to get short error message in English from enum
(Merge conflicts resolved by Michael Plante)

Better cleanup on errors, stricter types and some good casts
Avoid various memory leaks in error code paths and remove warnings. Also
add usbi_cond_destroy in os/threads_posix.h because it's used for cleanup
now.

(Merge conflicts resolved by Michael Plante)

Rename all interface parameters to usb_interface or interface_number
(Merge conflicts resolved by Michael Plante)

Add type parameter to the list_for_each_entry() and _safe() macros
(Merge conflicts resolved by Michael Plante)

VA_ARGS workaround for logging with MSVC6
(Merge conflicts resolved by Michael Plante)

Fix context memory leak in libusb_init()
* Now holds default_context_lock for duration of libusb_init
* Doesn't allocate it if not needed

Fix the last MSVC /W3 warning

removal of pthreads from MSVC and mingw
* removed pthread*.lib from linking in msvc6 (2005/8 not yet edited)
* added threads_windows.[ch] to all project files in msvc6
* added usbi_cond_signal to both threading versions, unused
* added native windows threading code, now used

removed redundant time.h includes

removed pthread-win32 informational solution files

updated MSVC 2005/2008 for thread abstraction

fixed DDK build

fixed cygwin's use of POSIX threads

fixed dpfp/dpfp_threaded for MinGW compatibility

config_msvc.h -> msvc/config.h

pthread abstraction for DLL project files

fixed bad reference to thread_windows in 2005 DLL vcproj

cygwin ifdef is not required in threads_windows.h - removed

fixed residuals from previous patches

moved thread source detection into autotool scripts
2010-02-24 11:29:43 +00:00
Daniel Drake 90d8fcab90 v1.0.5 release 2009-11-15 12:17:13 +00:00
Daniel Drake ef6ea6c3ae v1.0.4 release 2009-11-06 21:54:08 +00:00
Daniel Drake f46716f420 v1.0.3 release 2009-08-27 21:40:57 +05:45
Daniel Drake 8be256082e v1.0.2 release 2009-06-13 17:19:07 +01:00
Daniel Drake aa24c04e40 v1.0.1 release 2009-05-12 19:03:37 -04:00
Daniel Drake 34b9eebe35 v1.0.0 release
It's here!
2008-12-13 20:06:49 +00:00
Daniel Drake a133875e6e v0.9.4 release 2008-11-21 10:54:57 +00:00
Daniel Drake 046e681e4a v0.9.3 release 2008-08-23 01:00:21 -05:00
Daniel Drake 1631eaefcc v0.9.2 release 2008-07-19 17:51:42 -05:00
Daniel Drake 9140f5b414 v0.9.1 release 2008-06-28 21:28:44 -05:00
Daniel Drake d1292f8e73 v0.9.0 release
First libusb-1.0 beta release
2008-05-25 23:55:23 +01:00
Daniel Drake 852bba4754 Initial commit
Basic library structure which supports enumerating detected USB devices
2007-12-02 22:54:59 +00:00