135 Commits

Author SHA1 Message Date
Pete Batard ad42c29145 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
2011-02-22 15:55:49 +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 39f2e49d54 minor code improvements to xusb 2011-02-03 17:51:44 +00:00
Pete Batard 1363b3af32 added topology information retrieval to xusb 2011-01-20 12:56: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 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 3b5fd4a77e also apply the new "libusb.h" include to the dpfp samples 2010-11-18 13:58:51 +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 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 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 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 dfc99bb006 replaced LIBUSB_API with LIBUSB_CALL 2010-09-20 15:39:26 +01:00
Pete Batard 94039837f6 added libusb version display to xusb 2010-09-20 13:28:04 +01:00
Pete Batard 9daf8200f0 VS 2008 project files now use default for most options
* also fixed DLL generation that was set to MT(d) to using MD(d)
2010-08-06 18:55:17 +01:00
Pete Batard b5820d34ad enforce proper line terminators for MSVC and .sh files 2010-07-31 01:03:39 +01:00
Pete Batard 972106d2c8 more residuals from official: samples 2010-07-30 00:02:18 +01:00
Daniel Drake 435760539e bring autoconf/automake in line with official 2010-07-29 12:42:25 +01:00
Pete Batard 1ebd8c9052 improved readout of string descriptors in xusb
reads man/prod/ser strings using the relevant string index
2010-06-14 22:07:19 +01:00
Pete Batard 0e74019d22 added detection of -pthread option - only use when required 2010-05-11 00:36:46 +01:00
Pete Batard 71eaaccde2 disabled autoclaim in windows_usb.c and removed its use in xusb.c 2010-05-05 23:07:18 +01:00
Michael Plante 4242ac1b31 added threads_windows to source browser 2010-04-26 19:11:11 +01:00
Michael Plante 4226f9ee90 general whitespace cleanup 2010-04-24 11:18:56 +01:00
Pete Batard 307c5490de added missing calling convention for callbacks in dpfp
also whitespaces in dpfp.c
2010-04-18 23:15:33 +01:00
Pete Batard 9c896f5d98 switched DDK calling convention for examples to __cdecl 2010-04-18 23:01:44 +01:00
Pete Batard 3c06787b84 DDK build (sources) advapi32.lib dependency
also removed unneeded user32.lib dependency from libusb_sources (suggested by Michael Plante)
2010-04-16 23:35:01 +01:00
Pete Batard ea272ad88b [INTERNAL - NOT FOR RELEASE] MSVC 2008 advapi.lib dependency 2010-04-16 23:32:55 +01:00
Pete Batard d70641755c added advapi32.lib dependency reference in xusb.c 2010-04-16 23:31:50 +01:00
Pete Batard fc2b212758 better handling of attach/detach for Linux in xusb.c 2010-04-16 10:47:37 +01:00
Tim Roberts 32a674508a added more explicit library dependencies in xusb.c (MSVC) 2010-04-16 10:27:33 +01:00
Pete Batard 9300883d04 set default messaging level to warnings in xusb 2010-04-08 13:30:17 +01:00
Pete Batard 31aff02b62 fixed "ignoring return value of 'fwrite'" warning with gcc 2010-04-08 12:40:54 +01:00
Pete Batard c1cea1b0fe addressed MSVC warnings prompted by previous change 2010-04-08 12:33:27 +01:00
Pete Batard e295c065f3 added binary dump option to xusb (-b)
also switched boolean variables to actual bool
2010-04-08 12:30:06 +01:00
Pete Batard 2ec0c2b1ff fixed HID record size computation in xusb 2010-04-08 11:48:58 +01:00
Pete Batard adc0945982 fixed arglen warning from previous commit 2010-04-06 20:21:45 +01:00
Pete Batard b52b131343 xusb improvements (parameter handling + debug enable) 2010-04-06 20:20:01 +01:00
Michael Plante e5a9ce5865 xusb HID test improvements (Feature Reports)
Issue reported by Axel Rohde
2010-04-06 17:26:09 +01:00
Pete Batard 99587b5e2d ddk_build improvements (DLL option, static lib default) 2010-03-29 15:41:22 +01:00
Pete Batard fb787f4e67 enabled reuse of windows_error_str for wdi
additional cleanup
2010-03-23 19:42:15 +00:00
Pete Batard e36b809e53 renamed 2005 and 2008 MSVC solution files
2005 will be used a master and the only one included in release.
2008 will be kept in the development tree only for convenience.
2010-03-19 11:43:14 +00:00
Peter Stuge f43d8e65db removed trailing whitespaces (Windows backend) 2010-03-18 12:44:55 +00:00
Pete Batard e23692f3ea _stdcall calling convention for VS2005 DLL project files
also keeps default calling convention for non DLL project files with VS2008
2010-03-08 20:26:30 +00:00
Pete Batard 19f97761a0 xusb improvements (parameters checks) 2010-03-08 20:14:05 +00:00
Pete Batard 666106e836 more residual cleanup (Michael Plante) 2010-03-03 20:36:46 +00:00
Pete Batard 6320efeb75 changed calling convention to __stdcall (VS2008) 2010-03-03 16:41:35 +00:00
Pete Batard 32f130a540 renamed windows_compat to poll_windows 2010-03-02 16:13:33 +00:00