682 Commits

Author SHA1 Message Date
Chris Johns 6356d874db fix out of source build for DLL generation pbr331 2011-02-24 19:51:16 +00:00
Pete Batard fdd50d7556 [INTERNAL] remove CRs in repo, part 5 2011-02-24 18:24:40 +00:00
Pete Batard fd955d888e [INTERNAL] remove CRs in repo, part 4 2011-02-24 18:23:22 +00:00
Pete Batard 0f7c89f680 [INTERNAL] remove CRs in repo, part 3 2011-02-24 18:12:21 +00:00
Pete Batard 6e971690e8 [INTERNAL] remove CRs in repo, part 2 2011-02-24 18:11:02 +00:00
Pete Batard d7c22a6f62 [INTERNAL] remove CRs in repo, part 1 2011-02-24 18:05:13 +00:00
Pete Batard 9dc299236c fixed libusb_get_port_path using zombie parents
* add a call to libusb_get_device_list to ensure the parents exist
* modified API as a context is required for get_device_list
pbr330
2011-02-22 15:45:51 +00:00
Pete Batard 315216385f bumped internal version pbr329 2011-02-21 18:42:05 +00:00
Pete Batard d47ed6ce6c different approach to topology retrieval
* uses get_port, get_port_path, get_parent as suggested by Alan Stern
* adds parent_dev and port_number to the libusb device struct
* uses calloc on device struct, to handle currently missing backend implementations
* xusb updated to use new calls
2011-02-21 18:41:38 +00:00
Pete Batard 99e9ca3985 added sorting of .def file
* suggested by Michael Plante
2011-02-21 16:05:43 +00:00
Pete Batard c537f6f9d9 prevent set_configuration request from being sent using WinUSB
* multiple WinUSB set configuration requests can stall a device and
  WinUSB does not support setting of alt configuration in the first place
* issue reported and investigated by Xiaofan Chen
2011-02-21 15:35:50 +00:00
Pete Batard b0a72dd7a7 use eol= in .gitattributes (requires git >= 1.7.3)
* eol=lf does not work with autocrlf=true on Windows for older git
2011-02-21 13:16:29 +00:00
Pete Batard 39f2e49d54 minor code improvements to xusb 2011-02-03 17:51:44 +00:00
Pete Batard 85b004e9f0 bumped internal version pbr328 2011-01-31 22:46:21 +00:00
Pete Batard beeb853a0d merged latest official changes
* up to 295c9d12e2
2011-01-30 01:24:59 +00:00
Pete Batard 43aecbb8f0 fixed windows_init() return value on subsequent calls
* windows_init was set to return LIBUSB_ERROR_OTHER always
  if first run initialization was not executed
* issue reported by Konrad Rosenbaum
2011-01-20 16:21:32 +00:00
Pete Batard 1363b3af32 added topology information retrieval to xusb pbr327 2011-01-20 12:56:45 +00:00
Pete Batard 453b8bd631 updated .def file for libusb_get_device_topology 2011-01-20 12:56:31 +00:00
Pete Batard c34d9497f3 added get_device_topology optional API call
* Windows only, unsupported on other platforms
2011-01-20 12:45:26 +00:00
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