67 Commits
Author SHA1 Message Date
Pete Batard 46b1c51e94 bumped internal version 2010-10-06 13:37:26 +01:00
Pete Batard 0ee1745f01 bumped internal version 2010-10-05 19:49:47 +01:00
Pete Batard a5ea045efa bumped internal version 2010-10-05 14:07:51 +01:00
Mike Frysinger d4de93e6e9 Populate the pkg-config Libs.private field 2010-10-05 11:55:47 +01:00
Daniel Drake 9e172a7829 Update libtool version info
With input from various people on the mailing list, update the libtool
versioning info and start to update this on every release.

The next libusb release will not need a change here. All following ones will.
2010-10-05 11:53:05 +01:00
Pete Batard 55b62476e3 bumped internal version 2010-10-04 13:39:43 +01:00
Pete Batard 2590159c40 bumped internal version 2010-09-21 15:44:53 +01:00
Pete Batard f391318695 bumped internal version 2010-09-21 13:51:26 +01:00
Pete Batard 9b4ff54b66 handle versioning through libusb_version.h
* libusb_version.h.in is now used to generate libusb_version.h
* removes the need for libusb-1.0.rc.in and libusbi.h.in
* new LIBUSB_PACKAGE_VERSION added as .rc can't stringify macros
2010-09-21 11:58:00 +01:00
Pete Batard 6a3c5a6fa4 merged latest official changes
* up to e65f69a7ef
2010-09-20 16:09:23 +01:00
Pete Batard a1f3c26bfa added libusb version nano 2010-09-20 13:25:18 +01:00
Pete Batard 30b42bc654 creates MinGW and MS DLLs that are fully interchangeable
1. because we use WINAPI, the def file MUST have the @n aliases - there's no way around as MinGW's .o use decoration always for __stdcall, and this can't be turned off
2. our "dumb" autogen create_def() script simply creates the whole range of aliases (we might improve on this in the future)
3. dlltool must be called manually to create the import lib from the def, *with the --kill-at option*
4. a CREATE_IMPORT_LIB autotools variable is introduced to selectively run dlltool or not
2010-08-05 01:33:49 +01:00
Pete Batard 7f4f7bd753 reverted to using a (generated) .def file for DLL exports
added libusb-1.0.def (plus reference in MS projects)
removed LIBUSB_EXP/__declspec(dllexport) from libusb.h
removed LIBUSB_DLL_BUILD macros
added -Wl,--add-stdcall-alias linker option for MinGW/cygwin for DLL generation
added sed script in autogen to update the libusb-1.0.def
2010-08-02 23:13:17 +01:00
Pete Batard 92c7e620a7 fix -Wshadow warnings for cywgin
does so by setting gcc to -std=c99 instead -std=gnu99 for MinGW/cygwin
2010-07-29 22:50:00 +01:00
Pete Batard b9da60b4d5 fixed residuals from official for autoconf/automake 2010-07-29 20:08:18 +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
Ludovic Rousseau 8732049ff3 add AM_MAINTAINER_MODE 2010-06-11 10:20:21 +01:00
Pete Batard 0e74019d22 added detection of -pthread option - only use when required 2010-05-11 00:36:46 +01:00
Pete Batard 91f223d55c removed further MS generated data + bump version to 1.0.8 2010-05-05 22:28:41 +01:00
Peter Stuge 143014a928 autoconf needs to check for struct timespec 2010-04-20 15:39:18 +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
Pete Batard 3a4c4fc6c9 MinGW/cygwin advapi32 library dependency (configure.ac) 2010-04-16 23:36:00 +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
Pete Batard a7a96927a3 added toggable debug logging (core) 2010-04-06 21:12:13 +01:00
Michael Plante db8c3ff754 removed whitespaces in configure.ac 2010-03-29 12:47:35 +01:00
Pete Batard fed2c79866 configure.ac improvements (threads detection, AC_INIT) 2010-03-26 18:03:15 +00:00
Pete Batard bb6dcbdf19 removed unneeded versioning/options from autotool scripts 2010-03-06 00:39:09 +00:00
Pete Batard 122229e5f9 added .rc info to DLLs produced with MinGW/cygwin 2010-03-05 20:11:14 +00:00
Pete Batard 0da28601fa revert debug changes from previous commit 2010-03-05 02:26:44 +00:00
Pete Batard 14fb6e2622 remove "-0" suffix for MinGW/cygwin generated DLLs
See "7.2 Libtool's versioning system" and "4.2 Link mode"
of the GNU libtool documentation.
2010-03-05 01:59:01 +00:00
Pete Batard 5ca0d11008 residual corrections from previous commits (Michael Plante) 2010-03-03 20:19:44 +00: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
Pete Batard e158221159 r90: more compilation environment fixes:
- added Visual Studio 2005 (MSVC8) solution and project files (Orin Eman)
- renamed VS 2008 solution and project files
- fixed "warning: undefined symbols not allowed" for MinGW/cygwin in configure.ac
2010-01-19 00:55:30 +00:00
Pete Batard 3cb9ac7d88 r76: added cygwin support
- use AM_CFLAGS instead of CFLAGS (configure.ac)
- added -Werror in visibility attribute test to properly detect on cygwin (configure.ac)
- moved -Wshadow to AM_CFLAGS and disabled it on cygwin (configure.ac)
- emulated _open_osfhandle in windows_compat.c
- removed unneeded <tchar> include in windows_usb.c
2010-01-15 01:19:47 +00:00
Pete Batard 40e8e4185a r74: fixes CR/LF conversions introduced with previous changes 2010-01-14 15:44:47 +00:00
Pete Batard e6ef1694db r73: moved -pthread option to CFLAGS for platforms that need it 2010-01-14 14:09:46 +00:00
Pete Batard ff8fec009e svn r51: - Fix to use the proper pthread-win32 library name ('libpthreadGC2.a') with MinGW 2010-01-14 01:29:12 +00:00
Pete Batard 762989c9ba svn r44:
- fixed configure.ac for libusb handled timeouts
- fixed crash on invalid fds in windows_compat.c
- xusb improvements for mass storage test
2010-01-14 01:26:34 +00:00
Pete Batard 368130bd31 svn r35:
- new non-controversial composite device interface enumeration
- full XP support with port number detection workaround trade-off
- dropped read_registry_key
- dropped get_composite_interface_path
- factorized interface details enumeration
- dropped requirement -lws2_32 from configure.ac and added -lole32 (for string
to GUID conversion)
- removed debug mode from windows_compat.c
2010-01-14 01:22:31 +00:00
Pete Batard df329ef405 mirror libusb-winusb git branch from 2009.12.03 part 2 - core files 2010-01-14 00:30:20 +00:00
Daniel Drake 0bd7ef5d86 Refine timerfd header check (#18)
Require glibc-2.9 for the working timerfd support.
2009-11-21 16:58:31 +00:00
Daniel Drake 90d8fcab90 v1.0.5 release 2009-11-15 12:17:13 +00:00
Daniel Drake 4783008b7e Use timerfd for timeout handling
Use a new file descriptor from the timerfd system calls to handle
timeouts. On supported systems, this means that there is less hassle
figuring out when the poll() timeout should be, since
libusb_get_next_timeout() will always return 0 and the timeout events will
be triggered as regular activity on the file descriptor set.

Add API function libusb_pollfds_handle_timeouts() to detect whether
you're on a platform with the timing headache, and flesh out the
surrounding documentation.
2009-11-07 10:46:09 +00:00
Daniel Drake 9b120c2b37 Use AM_SILENT_RULES for building 2009-11-07 10:03:20 +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
Nathan Hjelm 86f79fbf61 Darwin: Don't cancel transfers on timeout
...because the OS does this for us.
2009-06-19 22:18:44 +01:00
Daniel Drake 8be256082e v1.0.2 release 2009-06-13 17:19:07 +01:00