Pete Batard
087fbcd0c9
bumped internal version
pbr321
2010-11-13 21:24:19 +00:00
Pete Batard
df5f5b9bad
[INTERNAL - NOT FOR RELEASE] stdint.h -> additional_includes
2010-11-13 21:17:14 +00:00
Pete Batard
0cb2ee1f29
removed the need for _open_osfhandle()
...
* use _open() always
* avoid the _open_osfhandle() redefinition on cygwin
2010-11-13 02:45:22 +00:00
Pete Batard
8cc6b97f1d
use _close() rather than CloseHandle() in usbi_close()
...
* use of CloseHandle() prevented the pipe fds from being
relinquished on libusb_exit()
* leaked fds could lead to the OS running out of new fds
and LIBUSB_ERROR_NO_MEM being returned as a result
* issue reported by Stephano Antonelli
2010-11-13 01:39:04 +00:00
Pete Batard
d95400144b
bumped internal version
pbr320
2010-11-01 18:18:56 +00:00
Pete Batard
6e03540cda
fixed bus number set to zero for some devices
...
* bus number could be set to zero if devices were listed
before their hubs in the GEN pass
* init_device now detects the issue and fixes it
* further code simplification with the introduction of a
new get_ancestor_session_id call
2010-11-01 18:03:42 +00:00
Pete Batard
10a07695b8
improved handling of newly connected devices during enum
...
* changed assertions that failed enum on newly connected
or disconnected, to warnings about device being ignored
* misc. additional logging message improvements
2010-11-01 16:07:33 +00:00
Pete Batard
1ef71e835d
hub handling improvements
...
* hub driver API now allows the retrieval of descriptors
* hub API now detects if default hub driver has been overridden
* comments fixup + enum debug template
2010-10-28 19:06:14 +01:00
Pete Batard
aa92806e23
more enumeration bugfixes and improvements
...
* previously opened devices were not being added to the discovered list
* provide device information on cache descriptor errors
* disconnected device is not an assertion failure
* code readability
pbr319
2010-10-28 11:12:11 +01:00
Pete Batard
844d7db566
minor enumeration bugfixes and improvements
...
* dev_interface_details is not available on GEN pass but
some warning messages attempt to reference that pointer
* skip device if interface path cannot be sanitized
* check the return value of init_device() and bail out on error
pbr318
2010-10-27 19:31:27 +01:00
Pete Batard
53fec87339
[INTERNAL - NOT FOR RELEASE] snapshot _README.txt
...
* also _bd.cmd fixes and improvements
pbr317
2010-10-27 16:29:09 +01:00
Pete Batard
c911ab1db2
proper removal of advapi32 library dependency
...
* advapi32 was still being used through RegQueryValueEx and
RegCloseKey
* also fixed overzealous removal of kernel32.lib, which
prevented DLL generation from WDK/DDK
2010-10-27 16:26:45 +01:00
Pete Batard
3981b0d9d8
[INTERNAL - NOT FOR RELEASE] prefixed internal files with _
2010-10-27 13:26:13 +01:00
Pete Batard
98c3552705
added /MT option for DDK builds
...
* default for ddk was to use MSVCRT, which produces static
libs that cannot be used in MSVC with /MT (libcmt)
* ddk_build script now allows users to chose between /MD
and /MT compatibility
* also simplified libusb_sources and updated INSTALL_WIN.txt
2010-10-27 13:17:57 +01:00
Pete Batard
86cf94cfdc
[INTERNAL - NOT FOR RELEASE] add stdint.h to archives
pbr316
2010-10-27 00:36:45 +01:00
Pete Batard
bffd2eaf25
fixed error C1001 when using DDK 64 bit .lib in VS2008
...
* DDK 64 bit static lib generated the following in VS2008 projects:
"fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\utc\src\p2\p2symtab.c', line 1823)"
* http://jpassing.com/2009/10/21/ltcg-issues-with-the-win7amd64-environment-of-wdk-7600/
2010-10-27 00:36:21 +01:00
Pete Batard
801d0cf23e
remove unneeded lib refs from DDK source
2010-10-26 20:08:39 +01:00
Pete Batard
cabdea406c
bumped internal version
pbr315
2010-10-26 19:00:14 +01:00
Pete Batard
cb3d779b7c
enum: allow out of hierarchical order processing of hubs
...
* Windows makes no guarantee that hubs are enumerated in root to leaf order
* Should address the issue reported by gorlik as part of trac #68
2010-10-26 18:58:19 +01:00
Pete Batard
5a2aa170f3
removed SetupAPI, AdvAPI32 and OLE32 dependencies
...
* this ensures that libusb dependent applications only need
to link with libusb on Windows
2010-10-26 16:31:13 +01:00
Pete Batard
281d8009be
set DLL API call declarations to static
...
* prevents redefinition warnings when an app is statically
linking against SetupAPI.lib in MSVC for instance.
2010-10-26 11:39:54 +01:00
Pete Batard
d9a0a98add
switched MSVC project files from MBCS to Unicode
...
* MBCS (which is different from UTF-8) only makes sense if
supporting Windows 95/98, which we don't
* also switched all string functions to use char*
2010-10-26 11:39:38 +01:00
Pete Batard
08aef0b40e
merged latest from official
...
678c242705 & 9cd9059bf9
2010-10-18 16:55:43 +01:00
Pete Batard
9795887f8c
fixed potentially non unique return value for htab_hash
...
* also increased htab size to 1021, from a .h macro
pbr314
2010-10-14 12:22:11 +01:00
Pete Batard
7b7157d5ba
fixed trac #68 (incorrect buffer size for HID reports)
...
* this regression was introduced in pbr301
* reported by gorlik
pbr313
2010-10-13 22:34:57 +01:00
Pete Batard
501f1e1a06
[INTERNAL - NOT FOR RELEASE] edit message for bump.sh
2010-10-13 22:33:02 +01:00
Pete Batard
5c7ef20119
fixed missing malloc check in htab_hash()
...
* spotted by Michael Plante
* also some cleanup
pbr312
2010-10-12 23:10:26 +01:00
Pete Batard
c7a064548d
bumped internal version
pbr311
2010-10-12 19:22:30 +01:00
Pete Batard
c6a552ee3c
hash function for session id now uses a proper hash table
...
* hash table functions modified from glibc (LGPL)
2010-10-12 19:21:29 +01:00
Pete Batard
f7b57e0b19
addressed TODOs from new_enum
...
* use realloc for unref
* pick VID/PID from PCI HCD
* cleanup
2010-10-11 19:14:03 +01:00
Pete Batard
bd5bd8a163
Windows enumeration overhaul
...
* changed device enumeration to rely on session ids (hashed device ID)
* all enumeration passes now occur in a single call
* also removed the separate HCD list (allows PCI hotplug of HCDs)
* additional cleanup
2010-10-11 12:49:02 +01:00
Pete Batard
16aa45995b
[INTERNAL - NOT FOR RELEASE] minor script updates
2010-10-07 21:56:37 +01:00
Pete Batard
46b1c51e94
bumped internal version
pbr310
2010-10-06 13:37:26 +01:00
Pete Batard
7b54f2789d
fixed missing $M_LDFLAGS from libusb/Makefile.am
...
* problem was introduced by recent -version-info patch from official
2010-10-06 13:34:01 +01:00
Pete Batard
0ee1745f01
bumped internal version
pbr309
2010-10-05 19:49:47 +01:00
Pete Batard
af66e5a985
fixed missed index -> _index in poll_windows.c debug messages
...
* follow up from cygwin shadow warning fix
2010-10-05 19:49:39 +01:00
Pete Batard
a5ea045efa
bumped internal version
pbr308
2010-10-05 14:07:51 +01:00
Pete Batard
34dd9c8bfe
fixed index shadow warnings from cygwin (from official)
2010-10-05 14:07:43 +01:00
Pete Batard
e0e7ffde56
small fixup to be in check with proposed official
2010-10-05 12:53:31 +01:00
Mike Frysinger
d4de93e6e9
Populate the pkg-config Libs.private field
2010-10-05 11:55:47 +01:00
Mike Frysinger
96a33edad3
Linux: fix build failure when CLOCK_MONOTONIC does not exist
...
This is not available on all platforms.
2010-10-05 11:53:18 +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
pbr307
2010-10-04 13:39:43 +01:00
Pete Batard
cf1b3cf3e9
fixed erroneous checks on SetupDi calls
2010-10-04 13:31:56 +01:00
Pete Batard
2590159c40
bumped internal version
pbr306
2010-09-21 15:44:53 +01:00
Pete Batard
91bb08eaba
[INTERNAL - NOT FOR RELEASE] removed string version handling from bump.sh
2010-09-21 15:44:44 +01:00
Pete Batard
c9502f2d1c
force the handling of version stringification in the .rc
...
* this removes the version string from libusb_version.h
2010-09-21 15:42:30 +01:00
Pete Batard
54e0ee800d
fixed missing def entries for function calls with no args
...
* this is needed for libusb_getversion() in MinGW32
2010-09-21 15:24:22 +01:00
Pete Batard
f391318695
bumped internal version
pbr305
2010-09-21 13:51:26 +01:00
Pete Batard
73a263bf20
[INTERNAL - NOT FOR RELEASE] added bump.sh script
2010-09-21 13:51:18 +01:00