148 Commits

Author SHA1 Message Date
Pete Batard 3fbf9a9b69 [samples] return NULL in dpfp_threaded poll_thread_main to avoid Cygwin warning 2011-09-06 12:29:55 +01:00
Vitali Lovich a6479690a3 [contrib] add non-officially supported CMake support 2011-09-06 12:18:58 +01:00
Pete Batard 50ba04d3ec get_device_speed fixes and addons
* fixed typos and missing breaks
* device_speed in .def
* device_speed in xusb
2011-09-06 12:00:42 +01:00
Hans de Goede 1545bc6a40 Linux: Fix warnings seen when compiling with gcc-4.6
Compiling with gcc-4.6 results in the following warnings:
os/linux_usbfs.c: In function 'op_get_configuration':
os/linux_usbfs.c:1144:6: warning: variable 'r' set but not used ...
os/linux_usbfs.c: In function 'op_handle_events':
os/linux_usbfs.c:2091:40: warning: 'status' may be used uninitialized ...
os/linux_usbfs.c:2044:6: note: 'status' was declared here
dpfp.c: In function 'save_to_file':
dpfp.c:228:9: warning: variable 'ignore' set but not used ...
dpfp_threaded.c: In function 'save_to_file':
dpfp_threaded.c:257:9: warning: variable 'ignore' set but not used ...

This patch fixes these. (The second comes from handle_control_completion()
which gcc seems to inline into op_handle_events().)

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
[stuge: Add fixes for dpfp examples and update source references]
2011-09-06 10:41:13 +01:00
Alan Stern b5c9800bbd [xusb] use bulk endpoints only for testing
* also reverts to using first endpoint found rather than last
2011-07-06 22:33:10 +01:00
Pete Batard 8031a1df35 [xusb] switched default log level to info
* this is the recommended level to run sample applications
2011-07-04 12:29:42 +01:00
Pete Batard 11c2d76a3e [xusb] fixed xusb no longer detaching driver on Linux
* OS_LINUX is no longer defined as it came from config.h
2011-06-28 11:56:03 +01:00
Pete Batard 58aae15046 [internal] switched to Visual Studio 2010 2011-03-16 02:01:04 +00:00
Pete Batard 6d4f27e0fc [xusb] fixed mass storage test data not being freed 2011-03-08 14:24:27 +00:00
Austyn Krutsinger c11ede2913 [xusb] added Sony PS3 SixAxis test
* also removed dependency on libusb's config.h
2011-03-07 17:27:41 +00:00
Pete Batard 5c4a76dc9b [xusb] removed HID support 2011-03-02 00:26:17 +00:00
Pete Batard 40579b271e [xusb] minor improvements 2011-03-02 00:07:28 +00:00
Pete Batard 6e971690e8 [INTERNAL] remove CRs in repo, part 2 2011-02-24 18:11:02 +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
2011-02-22 15:45:51 +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