652 Commits

Author SHA1 Message Date
Pete Batard 2a7b4a7a2c [INTERNAL - NOT FOR RELEASE] updated _bd.cmd pbr323 2010-11-23 00:17:12 +00:00
Pete Batard 17f273433d edited INSTALL_WINT to reflect the path changes 2010-11-22 23:33:12 +00:00
Pete Batard ef2e353453 moved WDK/DDK build scripts to /msvc 2010-11-22 23:30:06 +00:00
Pete Batard 54e71cdd7c moved MSVC projects files to /msvc 2010-11-22 23:20:40 +00:00
Pete Batard 6a40875ed8 code readability: always use apib->id for comparisons 2010-11-22 22:49:43 +00:00
Graeme Gill 06b832197a fixed default WinUSB timeout and ineffective policy settings
* default WinUSB timeout was 5 seconds, which may be to small.
  PIPE_TRANSFER_TIMEOUT policy is now set to infinite for all EPs.
* other WinUSB policy settings were called before the endpoints
  had been set. This is now fixed.
2010-11-22 22:43:49 +00:00
Pete Batard 3b5fd4a77e also apply the new "libusb.h" include to the dpfp samples 2010-11-18 13:58:51 +00:00
Pete Batard 89d11015b0 bumped internal version pbr322 2010-11-18 12:51:26 +00:00
Pete Batard 15f6f713e2 [INTERNAL - NOT FOR RELEASE] removed stdint.h dependency 2010-11-18 12:51:02 +00:00
Pete Batard 11c6f4d4ce removed "'guid_to_string' defined but not used" warning
* issued in MinGW/cygwin when ENABLE_DEBUG_LOGGING is not set
2010-11-18 12:50:29 +00:00
Pete Batard 9ec1bee9fb use #include "libusb.h" in the samples
* also removed unneeded ../msvc/ lib dir for VS2005
2010-11-18 12:37:46 +00:00
Pete Batard 727bb1d499 removed dependency on stdint.h for MS binary snapshot users
* binary snapshot users, with a version of Visual Studio < 10
  don't have stdint.h available
* stdint.h is referenced in libusb.h
* ssize_t, uint8_t and uint16_t are now defined in libusb.h
  when required
2010-11-18 12:24:37 +00:00
Pete Batard fa4cd28da3 fixed device interface path not freed for HID collections
* while additional HID collections might be ignored,
  existing code assumed that the device interface path was
  always assigned, which could create a leak
* issue reported by Stephano Antonelli
2010-11-18 11:28:30 +00:00
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