663 Commits
Author SHA1 Message Date
Pete Batard 4f7cc4982a [INTERNAL - TESTING] removed test file for line ending conversion pbr326 2011-01-18 16:27:45 +00:00
Pete Batard 8494522bfe xusb: better hex dump, with address and printable ASCII 2011-01-18 15:59:49 +00:00
Pete Batard 3a1a1b19b0 fixed VS2010 IntelliSense warnings 2011-01-18 12:42:51 +00:00
Pete Batard fb33bf2691 cygwin: switched back to -std=gnu99
* cygwin recently changed their definition of OVERLAPPED
  in winbase.h to using anonymous structs/unions
* anonymous struct unions are a GNU extension and ignored
  in standard C
* this resulted in the OVERLAPPED hEvent handle being
  moved to an improper location, and invalid handle errors
2011-01-18 11:54:10 +00:00
Pete Batard b8f2b83a39 removed the enforcing of WINAPI for cygwin
* a.k.a. "I'm not convinced."
2011-01-17 17:03:34 +00:00
Pete Batard 0816743fe7 bumped internal version pbr325 2010-12-10 15:24:13 +00:00
Pete Batard 8f49bcfd45 [INTERNAL - TESTING] test file for line ending conversion 2010-12-09 10:55:03 +00:00
Pete Batard 140189d302 [INTERNAL - TESTING] added -crlf option for .test files 2010-12-09 10:50:24 +00:00
Pete Batard 7093b1f585 fixed assertion failure on non USB HID
* typical ancestors: 'ROOT\HIDCLASS\0000' -> 'HTREE\ROOT\0' -> NULL
  resulted in session_id 0 being returned
* single case for non USB HID, newly inserted or unexpected unlisted
  is now being used, for performance reasons, as we'll still hear
  about any implementation bugs from people not being able to access
  an ignored device anyway (i.e. no need to be too forceful)
2010-12-04 23:48:36 +00:00
Pete Batard db73bf698e prevent LF -> CRLF conversion of configure.ac and Makefile.am
* if configure.ac uses DOS format, quoting multiple lines
  can produce an error in cygwin
* if Makefile.am uses DOS format, you might get the error
  AC_CONFIG_MACRO_DIR([m4]) conflicts with ACLOCAL_AMFLAGS=-I m4
  in libtoolize
2010-12-02 12:59:59 +00:00
Pete Batard 4c9102961d unconstrained ancestors lookup for HID and other devices
* Some HID devices (Logitech) had interfaces that used more than 2
  levels to get to a listed ancestor, which resulted to assertion
  failure
* new implementation no longer constrains lookup level
* issue reported by Phong Truong
pbr324
2010-12-01 12:56:08 +00:00
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