Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
ab8f71c
Windows: Fix cygwin64 build
pbatard Nov 6, 2014
ada59db
Windows: Silence VS2013 code analysis warnings
pbatard Nov 13, 2014
d37635a
misc: Fix grammar in a comment
nomis52 Nov 25, 2014
63cd7d1
Windows: fix 2 bugs in windows_handle_events()
pbatard Dec 16, 2014
8c4f86b
API: Add an Application Programming Interface page
Dec 15, 2014
e82c9b2
API: remove unused libusb_hotplug_callback struct
Dec 16, 2014
de6130d
Doxygen: fix a duplicate label
Dec 16, 2014
7e725e5
Doxygen: fix a duplicate label
Dec 16, 2014
7924c1f
Doxygen: upgrade doxygen.cfg.in file
Dec 16, 2014
7ede4b7
core: Remove taking of events lock inside usbi_fd_notification()
dickens Nov 18, 2014
c57953c
core: Rename pollfd_modify counter and its lock to device_close
dickens Nov 18, 2014
0e62e5c
core: Add new lock to protect internal context event data
dickens Nov 18, 2014
1b4b7f8
core: Transition device close event to use event_data_lock
dickens Nov 18, 2014
5b2f2e1
core: Rename pipe used to signal internal events
dickens Nov 18, 2014
192adf4
core: Add helper functions to signal and clear the event pipe
dickens Nov 18, 2014
f5795bf
core: Add new flag to record when a new poll fd is added
dickens Nov 18, 2014
3b371f1
core: Eliminate hotplug pipe, using list and event pipe instead
dickens Nov 18, 2014
89b5407
core: Signal the event pipe at most one time
dickens Nov 18, 2014
4c28cd8
core: Improve the handling of the pollfd list
dickens Dec 21, 2014
0f8c332
Windows: Direct control requests to a specific interface when possible
dickens Jan 6, 2015
542fd04
Fixing erroneous double semi-colon
dickens Jan 6, 2015
5e8928b
core: Make event_data_lock non-recursive
dickens Jan 6, 2015
8c23764
Do not use IOUSBDeviceInterface550 or kIOUSBInterfaceInterfaceID550 o…
hjelmn Jan 8, 2015
5ca334d
core: Add debug statements to help trace transfers
dickens Jan 8, 2015
63a440f
Windows: Free all WinUSB handles when closing a device
dickens Jan 11, 2015
859d6a9
core: Fix handling of duplicate transfer submission/cancellation
dickens Jan 8, 2015
caa456a
Windows: Fix broken build caused by missing rename in 63a440f1
dickens Jan 11, 2015
3037616
Examples: Fix device leak in hotplugtest
dickens Jan 12, 2015
127e0c3
hotplug: Provide a default enum value for libusb_hotplug_flag
dickens Jan 13, 2015
fec3f8c
core: Add alternative API for backends to handle transfer completion
dickens Jan 21, 2015
a3d3313
Fix up backends for new transfer completion API.
dickens Jan 21, 2015
51b1019
linux_usbfs: Update MAX_ISO_BUFFER_LENGTH
dickens Jan 22, 2015
58bf25b
darwin: change Xcode project end-of-line
Jan 25, 2015
e8dad7c
core: Implement new transfer completion API
dickens Jan 21, 2015
699db15
darwin: Transition to use new transfer completion API
dickens Jan 21, 2015
4b716a2
netbsd: Transition to use new transfer completion API
dickens Jan 21, 2015
89f0316
openbsd: Transition to use new transfer completion API
dickens Jan 21, 2015
cbbed3c
haiku: Transition to use new transfer completion API
dickens Jan 21, 2015
d68750a
darwin: Fix build break and warning caused by commit 699db154
dickens Feb 1, 2015
d26cc69
darwin: fix resource leak (cached devices are never freed)
parafin Feb 9, 2015
b000fe1
misc: fix typos in comments
orbitcowboy Feb 13, 2015
a886bb0
core: Add internal transfer state management
dickens Jan 19, 2015
1c8d030
linux: Fix format specifiers for sscanf() calls
dickens Mar 1, 2015
998e83a
Misc: Remove comment that no longer makes sense
dickens Mar 1, 2015
dd4da21
Misc: Update README to include Haiku backend
dickens Mar 1, 2015
c7401ca
Remove -c flag. Erroneous output caused on android
venkateshshukla Jun 21, 2014
56aa106
windows: fix broken bus number lookup
pbatard Mar 5, 2015
0e10f8f
Windows: Fix wIndex in setup packet for config descriptor request
dickens Apr 22, 2015
0dca8fd
Windows: Improve monotonic clock_gettime() implementation
dickens Apr 22, 2015
dfb5c07
Windows: Remove erroneous call to CloseHandle and add comments
dickens Apr 27, 2015
76b3d34
core: use the actual signature of libusb_get_configuration() in the docs
ao2 Apr 22, 2015
138d240
core: generalize comment about setting configurations with claimed in…
ao2 Apr 22, 2015
3071d46
WinCE: Remove unused errno header and local variable
dickens Apr 27, 2015
24a6529
WinCE: Remove use of dedicated timer thread
dickens Apr 28, 2015
f2ebec7
WinCE: Make whitespace consistent across entire file
dickens Apr 28, 2015
a611862
WinCE: Fix return from void function
dickens Apr 28, 2015
4ec225e
WinCE: Unlock mutex when error occurs during event handling
dickens Apr 28, 2015
df08e7e
Misc: Remove unnecessary \n from log messages
photron Mar 16, 2015
0a5b006
core: Remove unused member add_iso_packet_size from struct usbi_os_ba…
tklauser Apr 14, 2015
a1c9895
examples: Address issues reported by Markus Elfring
dickens Apr 28, 2015
02f7f85
core: Miscellaneous transfer timeout improvements
dickens Apr 27, 2015
9b2c8ab
core: Copy transfer timeout to local variable before using
dickens May 7, 2015
c8662f8
Windows: Check for "calloc" allocation failure.
ya1gaurav May 13, 2015
260ff88
Misc: Fix doxygen comment for MaxPower field with respect to super-speed
tklauser May 13, 2015
c141457
linux_usbfs: Fix memory allocation failure.
ya1gaurav May 13, 2015
3682baa
Windows: Destroy autoclaim_lock during cleanup
dickens Jul 29, 2015
b31e7f8
Windows: Remove redundant check in windows_claim_interface()
dickens Jul 29, 2015
649a500
Windows: Close HID handles when closing composite devices
dickens Jul 29, 2015
d473d0b
Use locally defined MIN macro instead of min which is (possibly) defi…
Timmmm Jun 3, 2015
f9480d0
linux_usbfs: use calloc for multiplication
msmeissn Jun 13, 2015
a4d2cb8
API: Add libusb_free_pollfds() function
dickens Mar 1, 2015
d73bc72
libusb 1.0.20-rc1
dickens Jul 29, 2015
4fe0f7e
Misc: Remove autom4te.cache directory from Haiku during 'make dist'
dickens Jul 29, 2015
a6a7b53
linux: Assume usbfs path = /dev/bus/usb when using UDEV
jwrdegoede Aug 3, 2015
13a90e4
linux_usbfs: Set reap action to CANCELLED only when successful
dickens Aug 3, 2015
efd02e7
core: Correctly report cancellations due to timeouts
dickens Aug 3, 2015
8c24a1b
Examples: fxload improvements
dickens Aug 5, 2015
2e1781e
core: Record when a transfer timeout has been handled
dickens Aug 22, 2015
8f2d5bb
libusb 1.0.20-rc2
dickens Sep 3, 2015
bf1635b
io: Always complete transfers regardless of timerfd errors
dickens Sep 4, 2015
127250e
Windows: Fix some build warnings/link issues
dickens Sep 5, 2015
7a00443
core: Add RC string to libusb version message
dickens Sep 5, 2015
440fdbb
libusb 1.0.20-rc3
dickens Sep 5, 2015
b5991a9
libusb 1.0.20
dickens Sep 14, 2015
cec3514
Windows: Regenerate libusb-1.0.def file from latest DLL
dickens Sep 14, 2015
6d5ffa0
Docs: Add missing functions to API page
dickens Sep 14, 2015
eb532c0
linux_usbfs: Only remove the device fd from the pollfd list once
dickens Sep 18, 2015
377f513
linux: Filter hotplug events by DEVTYPE of "usb_device"
dickens Sep 18, 2015
3dbf0a9
linux_usbfs: Avoid file descriptor leak in error case
dickens Sep 18, 2015
e9a52c0
linux_usbfs: Add support for kernels that can reap after disconnect
dickens Sep 18, 2015
a7e946a
Miscellaneous fixes
tklauser Apr 14, 2015
4a0eacb
Windows: Fix potential memory leak
dickens Sep 20, 2015
960a6e7
core: Prevent attempts to recursively hande events
dickens Sep 10, 2015
5e45e07
darwin: ignore root hub simulation devices
hjelmn Oct 9, 2015
b7526c1
darwin: updates to support el capitan
hjelmn Nov 21, 2015
87a97e4
core: Store different event types as a bitmask within the context
dickens Dec 10, 2015
a6db382
API: Add libusb_interrupt_event_handler() function
dickens Dec 10, 2015
3dc781c
Misc: Simplify Haiku build and fix broken parallel build
dickens Dec 3, 2015
16ddfe1
Misc: Spelling fixes
tklauser Sep 25, 2015
cb441ad
Windows: Patch to support VirtualHub
johannrichard Dec 22, 2015
a34ba28
Windows: Add Visual Studio 2015 support
BrentRector Jul 25, 2015
e10a652
Examples: fix typo in Nathan Hjelm email
LudovicRousseau Jan 6, 2016
3313f48
Windows: Use strcasecmp() instead of stricmp() on Cygwin
dickens Jan 7, 2016
871d1a4
Windows: Fix compiler warnings due to type mismatches
dickens Jan 7, 2016
f3758c1
Windows: Fix printf format specifiers in poll_windows.c
dickens Jan 7, 2016
d7cf58b
WinCE: Fix printf format specifiers
dickens Jan 7, 2016
ba73390
linux: Correctly return device configuration when using usbfs
dickens Jan 6, 2016
92a3278
windows: Move common definitions to a separate file
Jan 20, 2016
5d83aba
windows: Rename windows_usb.h/c windows_winusb.h/c
Jan 20, 2016
8823c17
usbdk: Introduce usbdk backend
Jan 20, 2016
24c5289
build: Integrate usbdk backend
Jan 20, 2016
48bfef6
Misc: Minor makefile cleanup
dickens Jan 24, 2016
a3ec36d
Windows: Source file cleanup
dickens Jan 27, 2016
4a0446f
Misc: Fix up Visual Studio project files
dickens Jan 27, 2016
d76a401
Windows (usbdk): Remove unnecessary/unused structure
dickens Jan 27, 2016
cdfe236
Windows (usbdk): Remove unnecessary bookkeeping
dickens Jan 27, 2016
7de6c0f
Windows: Fix compilation warnings when logging is disabled
dickens Jan 27, 2016
fc721ed
Windows: Replace open-coded string alloc + copy with _strdup()
dickens Jan 27, 2016
d73aafe
Windows: Minor improvements to windows_nt_common.c
dickens Jan 27, 2016
4dfa6d6
Windows: Fix DDK compilation
pbatard Jan 27, 2016
c8f7115
Windows: Ensure proper cleanup when backend init() functions fail
dickens Jan 27, 2016
f277313
WinCE: Miscellaneous changes
dickens Jan 28, 2016
f94184c
WinCE: Remove unnecessary/unused structure
dickens Jan 28, 2016
452e7bd
Windows: Fix some minor issues in windows_nt_common.c
dickens Jan 28, 2016
57cfbb4
Windows/WinCE: Improve the run-time dynamic linking scheme
dickens Jan 28, 2016
c37f8f4
Misc: Minor stylistic improvements to libusbi.h
dickens Jan 28, 2016
a57f0ec
Windows (winusb): Fix build break introduced in c8f71151 due to typo
dickens Jan 28, 2016
33f51ea
Windows: Move definitions for Cygwin.
hiyuh Jan 28, 2016
448584a
Windows: Fix style issues in threading code
dickens Jan 30, 2016
3f4df89
linux_netlink: Remove unnecessary header includes and conditionals
dickens Jan 28, 2016
ffb5926
linux_netlink: Add useful debug messages and clean up error handling
dickens Jan 28, 2016
ec27299
linux_netlink: Add message authentication and clean up parsing
dickens Jan 28, 2016
8e3d41e
windows: Fix compilation for MSYS2
evanhunter Jan 8, 2016
60e875d
sync: Allow transferred argument to be optional in bulk APIs
dickens Feb 24, 2016
8a0c143
Misc: Make API parameter names consistent and sensible
dickens Feb 24, 2016
7ee92df
Misc: Prefix doxygen references in order to namespace libusb
dickens Feb 24, 2016
7ab9087
Misc: Add libusb_interrupt_event_handler() to API docs page
dickens Feb 24, 2016
b99391d
Misc: Document the return code for control transfers that are too large
dickens Feb 24, 2016
a05b282
Misc: Remove unused definitions for usbi_cond_signal()
dickens Jan 30, 2016
3a4fd0a
core: Remove POSIX threads influence from synchronization code
dickens Jan 30, 2016
26bb407
Add Travis CI configuration
hjelmn Feb 25, 2016
37df2f9
travis: ensure udev is installed
hjelmn Feb 25, 2016
6e05325
travis: fix typo
hjelmn Feb 25, 2016
118dac7
travis: Update config file
dickens Feb 25, 2016
67b2f4b
travis: Add sudo to apt-get commands
dickens Feb 25, 2016
85c1f78
threads_posix: use backend clock_gettime()
hjelmn Feb 25, 2016
65569f2
travis: test xcode project
hjelmn Feb 25, 2016
89e07d1
Merge pull request #154 from hjelmn/darwin_gettime_fix
hjelmn Feb 25, 2016
66ceb53
Misc: Convert README to README.md
dickens Feb 25, 2016
42c8f9d
Misc: Add markdown references for COPYING and PORTING files
dickens Feb 25, 2016
1624d8d
Misc: Link README to README.md to satisfy autotools
dickens Feb 25, 2016
09f212b
travis: use addons to install packages
hjelmn Feb 26, 2016
d387889
travis: bah. remove tabs
hjelmn Feb 26, 2016
78dc70a
travis: sources line is needed
hjelmn Feb 26, 2016
6de66bb
travis: one more fix. need packages under apt
hjelmn Feb 26, 2016
64d583f
bootstrap: use autoreconf
hjelmn Feb 25, 2016
1d54ee1
Windows: Fix parent USB device reference leak
projectgus Apr 28, 2015
926148d
Windows: Fix dev_interface_path memory leak when reusing device ref
projectgus Apr 28, 2015
c572f97
Windows: Add backend support for get_config_descriptor_by_value()
dickens Mar 2, 2016
7bfc729
Windows: Fix faulty logic that can pick the wrong config descriptor
dickens Mar 2, 2016
244e394
README.md: add Coverity badge
LudovicRousseau Mar 2, 2016
680828a
core: fix 2 compiler warnings
LudovicRousseau Feb 27, 2016
4bfa440
darwin: fix 1 compiler warning
LudovicRousseau Feb 27, 2016
3661588
examples: fix 2 compiler warnings
LudovicRousseau Feb 27, 2016
2e78f95
examples: fix 2 compiler warnings
LudovicRousseau Feb 27, 2016
686ccc2
examples: fix 3 compiler warnings
LudovicRousseau Feb 27, 2016
765a1fb
travis-CI: fails compilation on warning
LudovicRousseau Feb 27, 2016
31ff09c
Windows: Fix MinGW build
dickens Mar 3, 2016
fc2840f
AppVeyor: initial configuration file
hacker2490 Mar 3, 2016
fb2b6b2
README.md: add AppVeyor badge
LudovicRousseau Mar 3, 2016
1fd08a1
Replace obsolete usleep with nanosleep
stefanct Jan 18, 2016
a499ef2
xusb: fix typo
hjelmn Mar 5, 2016
763668c
darwin: fix occasional dead-lock on libusb_exit
parafin Oct 15, 2015
79cc25a
darwin: build hotplugtest sample in Xcode
LudovicRousseau Mar 6, 2016
964cff4
examples: fix 3 compiler warnings
LudovicRousseau Mar 6, 2016
ce9e72c
README.md: update AppVeyor badge
LudovicRousseau Mar 6, 2016
8b42622
android: Fix typo in README
skelliam Jan 4, 2016
ba9eef2
android: update README
skelliam Jan 3, 2016
40fb6ff
AppVeyor: use a .bat file now
hacker2490 Mar 3, 2016
98dd33c
free can handle NULL ptr.
ya1gaurav Jun 19, 2015
e381f33
README.md: update AppVeyor badge (again)
LudovicRousseau Mar 6, 2016
dc7760a
core: revert some of prior patch
hjelmn Mar 6, 2016
0dcc646
core: re-add one more conditional
hjelmn Mar 6, 2016
2040ab1
configure: bump autoconf version and remove obsolete AM_MAINTAINER_MODE
hjelmn Mar 10, 2016
da27298
autogen: remove --enable-maintainer-mode
hjelmn Mar 12, 2016
4cfd001
fix nano version
hjelmn Mar 12, 2016
a42b524
AppVeyor: add cygwin and minGW support
hacker2490 Mar 3, 2016
578942b
AUTHORS: update my copyright
hjelmn Mar 20, 2016
30b0824
Merged based on most recent changes to master
dpostorivo May 19, 2016
6ec266c
Fixed merge issues
dpostorivo May 20, 2016
0b947e5
Windows: Fix false assertion failure message during enumeration
dickens May 30, 2016
a283c3b
Add support for persistent device memory.
sesse Feb 20, 2016
c5c4c7c
Misc: Add .amend to .gitignore
dickens May 30, 2016
ad6f234
Misc: Fix usbi_os_backend structure initialization
dickens May 30, 2016
adb6e39
Clean failure in discovered_devs_append.
ftdidev Mar 2, 2016
247c719
Windows: Clean up referenced devices when memory allocation fails
dickens May 30, 2016
648fb86
Add support for Intel Alpine Ridge USB 3.1 Controller on Windows 7.
ecejeff Mar 21, 2016
ebc35d6
merge with updated master
dpostorivo Jun 30, 2016
4080dcc
merge with master
dpostorivo Jun 30, 2016
7180b0b
finished merge
dpostorivo Jun 30, 2016
0f3c7ca
t push origin android_usbfdMerge branch 'merge_test' into android_usbfd
dpostorivo Jun 30, 2016
4770f84
added logging to hot spots
dpostorivo Jun 30, 2016
ed70d45
Switched to direct android logging
dpostorivo Jun 30, 2016
bcac08d
Examples: Ported testlibusb from libus-0.1 to libusb-1.0
anilgit90 Apr 2, 2016
7dff2d3
examples: make dpfp_threaded work on OS X
hjelmn Jul 22, 2016
001f687
fix nano
hjelmn Jul 22, 2016
9afb5c0
examples: add missing include to dpfp_threaded
hjelmn Jul 22, 2016
bd8d5b5
io: Fix race condition in handle_timeout()
jstmlr Jul 20, 2016
7ce85c4
libusb 1.0.21-rc1
hjelmn Jul 22, 2016
3564c18
windows: use appropriate version for VS2015 solution files
pbatard Jul 22, 2016
6976733
changelog: add missing entry
hjelmn Jul 22, 2016
eefd322
Solaris backend
leilchen Feb 19, 2016
bb014d8
changelog: add entry for new solaris backend
hjelmn Jul 25, 2016
5ffcedf
Updated TODO link
hacker2490 Jul 24, 2016
d682143
on to 1.0.21-rc2
hjelmn Jul 25, 2016
2682e21
Revert "io: Fix race condition in handle_timeout()"
jwrdegoede Aug 10, 2016
a5302ff
core: Change event handling lock to traditional (non-recursive) type
dickens Oct 26, 2015
e9d9c73
wince: Do not differ between cancel / timeout ourselves
jwrdegoede Jun 6, 2016
4eaabb1
winnt: Do not differ between cancel / timeout ourselves
jwrdegoede Jun 6, 2016
138b661
core: Refactor code related to transfer flags and timeout handling
dickens Oct 26, 2015
06e8679
core: Do not arm timer-fd for transfers where the os handles timeout
jwrdegoede Jun 6, 2016
d5a1418
core: Test for LIBUSB_SUCCESS instead of 0 in handle_timeout()
jwrdegoede Jun 6, 2016
efcfe05
core: Fix do_close locking
jwrdegoede Jun 6, 2016
ce59e6e
core: Fix unlocked access to timeout_flags
jwrdegoede Jun 6, 2016
9542c38
core: Move calculate_timeout call to add_to_flying_transfers
jwrdegoede Jun 8, 2016
00e36c8
linux_usbfs: Deal with receiving POLLERR before all transfers have co…
jwrdegoede Jun 7, 2016
8877841
core: Document why we drop the flying_transfers_lock before submit_tr…
jwrdegoede Aug 11, 2016
e5b09f3
release: on to 1.0.21-rc3
hjelmn Aug 22, 2016
e5c680e
Merge remote-tracking branch 'github/master' into android_usbfd
dpostorivo Aug 30, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,7 @@ Release
*~
*.orig
.dirstamp
*.swn
*.swm
*.swo
.amend
29 changes: 29 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Require trusty for now as it has a more recent version of autoconf
sudo: required
dist: trusty
language: c

compiler:
- gcc
- clang

os:
- linux
- osx


addons:
apt:
packages:
- autoconf
- automake
- libtool
- m4
- libudev-dev
sources:
- ubuntu-toolchain-r-test

script:
- ./autogen.sh && make -j4
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./travis-autogen.sh --disable-udev && make -j4; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd Xcode && xcodebuild -project libusb.xcodeproj ; fi
15 changes: 13 additions & 2 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
Copyright © 2001 Johannes Erdfelt <johannes@erdfelt.com>
Copyright © 2007-2009 Daniel Drake <dsd@gentoo.org>
Copyright © 2010-2012 Peter Stuge <peter@stuge.se>
Copyright © 2008-2013 Nathan Hjelm <hjelmn@users.sourceforge.net>
Copyright © 2008-2016 Nathan Hjelm <hjelmn@users.sourceforge.net>
Copyright © 2009-2013 Pete Batard <pete@akeo.ie>
Copyright © 2009-2013 Ludovic Rousseau <ludovic.rousseau@gmail.com>
Copyright © 2010-2012 Michael Plante <michael.plante@gmail.com>
Copyright © 2011-2013 Hans de Goede <hdegoede@redhat.com>
Copyright © 2012-2013 Martin Pieuchot <mpi@openbsd.org>
Copyright © 2012-2013 Toby Gray <toby.gray@realvnc.com>
Copyright © 2013-2015 Chris Dickens <christopher.a.dickens@gmail.com>

Other contributors:
Akshay Jaggi
Alan Ott
Alan Stern
Alex Vatchenko
Andrew Fernandes
Anthony Clay
Antonio Ospite
Artem Egorkine
Aurelien Jarno
Bastien Nocera
Bei Zhang
Benjamin Dobell
Carl Karsten
Chris Dickens
Colin Walters
Dave Camarillo
David Engraf
Expand All @@ -32,6 +34,7 @@ Felipe Balbi
Florian Albrechtskirchinger
Francesco Montorsi
Francisco Facioni
Gaurav Gupta
Graeme Gill
Gustavo Zacarias
Hans Ulrich Niedermann
Expand All @@ -48,7 +51,9 @@ Kuangye Guo
Lars Kanis
Lars Wirzenius
Luca Longinotti
Marcus Meissner
Markus Heidelberg
Martin Ettl
Martin Koegler
Matthias Bolte
Mike Frysinger
Expand All @@ -64,15 +69,21 @@ Rob Walker
Sean McBride
Sebastian Pipping
Simon Haggett
Simon Newton
Thomas Röfer
Tim Hutt
Tim Roberts
Tobias Klauser
Toby Peterson
Tormod Volden
Trygve Laugstøl
Uri Lublin
Vasily Khoruzhick
Vegard Storheil Eriksen
Venkatesh Shukla
Vitali Lovich
Xiaofan Chen
Zoltán Kovács
Роман Донченко
parafin
xantares
33 changes: 31 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,14 +1,43 @@
For detailed information about the changes below, please see the git log or
visit: http://log.libusb.info

2016-07-20: v1.0.21:
* Core: Refactor code related to transfer flags and timeout handling
* Darwin: Ignore root hub simulation devices
* Darwin: Improved support for OS X El Capitan
* Linux: Support preallocating kernel memory for zerocopy USB
* Linux: Deal with receiving POLLERR before all transfers have completed
* Solaris: Add solaris backend
* Windows: Add Visual Studio 2015 support
* Prevent attempts to recursively handle events
* Fix race condition in handle_timeout()
* Allow transferred argument to be optional in bulk APIs
* Various other bug fixes and improvements

2015-09-13: v1.0.20
* Add Haiku support
* Fix multiple memory and resource leaks (#16, #52, #76, #81)
* Fix possible deadlock when executing transfer callback
* New libusb_free_pollfds() API
* Darwin: Fix devices not being detected on OS X 10.8 (#48)
* Linux: Allow larger isochronous transfer submission (#23)
* Windows: Fix broken builds Cygwin/MinGW builds and compiler warnings
* Windows: Fix broken bus number lookup
* Windows: Improve submission of control requests for composite devices
* Examples: Add two-stage load support to fxload (#12)
* Correctly report cancellations due to timeouts
* Improve efficiency of event handling
* Improve speed of transfer submission in multi-threaded environments
* Various other bug fixes and improvements
The (#xx) numbers are libusb issue numbers, see ie:
https://github.com/libusb/libusb/issues/16

2014-05-30: v1.0.19
* Add support for USB bulk streams on Linux and Mac OS X (#11)
* Windows: Add AMD and Intel USB-3.0 root hub support
* Windows: Fix USB 3.0 speed detection on Windows 8 or later (#10)
* Added Russian translation for libusb_strerror strings
* All: Various small fixes and cleanups
The (#xx) numbers are libusb issue numbers, see ie:
https://github.com/libusb/libusb/issues/11

2014-01-25: v1.0.18
* Fix multiple memory leaks
Expand Down
32 changes: 0 additions & 32 deletions README

This file was deleted.

1 change: 1 addition & 0 deletions README
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# libusb

[![Build Status](https://travis-ci.org/libusb/libusb.svg?branch=master)](https://travis-ci.org/libusb/libusb)
[![Build status](https://ci.appveyor.com/api/projects/status/xvrfam94jii4a6lw?svg=true)](https://ci.appveyor.com/project/LudovicRousseau/libusb)
[![Coverity Scan Build Status](https://scan.coverity.com/projects/2180/badge.svg)](https://scan.coverity.com/projects/libusb-libusb)

libusb is a library for USB device access from Linux, Mac OS X,
Windows, OpenBSD/NetBSD and Haiku userspace.
It is written in C (Haiku backend in C++) and licensed under the GNU
Lesser General Public License version 2.1 or, at your option, any later
version (see [COPYING](COPYING)).

libusb is abstracted internally in such a way that it can hopefully
be ported to other operating systems. Please see the [PORTING](PORTING)
file for more information.

libusb homepage:
http://libusb.info/

Developers will wish to consult the API documentation:
http://api.libusb.info

Use the mailing list for questions, comments, etc:
http://mailing-list.libusb.info

- Pete Batard <pete@akeo.ie>
- Hans de Goede <hdegoede@redhat.com>
- Xiaofan Chen <xiaofanc@gmail.com>
- Ludovic Rousseau <ludovic.rousseau@gmail.com>
- Nathan Hjelm <hjelmn@users.sourceforge.net>
- Chris Dickens <christopher.a.dickens@gmail.com>

(Please use the mailing list rather than mailing developers directly)
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Please see the libusb roadmap by visiting:
https://github.com/libusb/libusb/issues/milestones?direction=asc&sort=due_date
https://github.com/libusb/libusb/milestones?direction=asc&sort=due_date&state=open
956 changes: 955 additions & 1 deletion Xcode/libusb.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions android/README
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ The libusb library, examples and tests can then be found in:
Where $ARCH is one of:
armeabi
armeabi-v7a
mips
mips64
x86

x86_64

Installing:
-----------
Expand Down Expand Up @@ -62,7 +64,7 @@ image of a running device:
# Install libusb
adb push obj/local/armeabi/libusb1.0.so /sdcard/
adb shell su -c "cat > /system/lib/libusb1.0.so < /sdcard/libusb1.0.so"
adb shell rm /system/lib/libusb1.0.so
adb shell rm /sdcard/libusb1.0.so

# Install the samples and tests
for B in listdevs fxload xusb sam3u_benchmark hotplugtest stress
Expand Down
41 changes: 41 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: 1.0.{build}
configuration:
- Debug
- Release
platform:
- x64
- Win32
build:
project: msvc\libusb_2013.sln
parallel: true
verbosity: detailed
environment:
matrix:
- libusb_2015: msvc\libusb_2015.sln
libusb_2013: msvc\libusb_2013.sln
libusb_2012: msvc\libusb_2012.sln
libusb_2010: msvc\libusb_2010.sln
install:

- cmd: >-
rem Copying libusb to cygwin home directory

xcopy /S C:\projects\libusb C:\cygwin\home\appveyor\

rem Copying libusb to MinGW home directory

xcopy /S C:\projects\libusb C:\msys64\home\appveyor\

build_script:
- cmd: >-
msbuild %libusb_2015% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

msbuild %libusb_2013% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

msbuild %libusb_2012% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

msvc/appveyor.bat

appveyor_minGW.bat

appveyor_cygwin.bat
14 changes: 14 additions & 0 deletions appveyor_cygwin.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
echo on
SetLocal EnableDelayedExpansion

if [%Configuration%] NEQ [Debug] goto releaseWin32

:releaseWin32
if [%Platform%] NEQ [Win32] exit 0
if [%Configuration%] NEQ [Release] exit 0
C:\cygwin\bin\bash -e -l -c "mkdir build-Win32-cygwin"
C:\cygwin\bin\bash -e -l -c ./autogen.sh
C:\cygwin\bin\bash -e -l -c "cd build-Win32-cygwin"
C:\cygwin\bin\bash -e -l -c "build-Win32-cygwin/../configure"
C:\cygwin\bin\bash -e -l -c "make -j4"
C:\cygwin\bin\bash -e -l -c "make install"
24 changes: 24 additions & 0 deletions appveyor_minGW.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
echo on
SetLocal EnableDelayedExpansion

if [%Configuration%] NEQ [Debug] goto releasex64

:releasex64
if [%Platform%] NEQ [x64] goto releaseWin32
if [%Configuration%] NEQ [Release] exit 0
C:\msys64\usr\bin\bash -e -l -c "mkdir build-x64"
C:\msys64\usr\bin\bash -e -l -c ./autogen.sh
C:\msys64\usr\bin\bash -e -l -c "cd build-x64"
C:\msys64\usr\bin\bash -e -l -c "build-x64/../configure --prefix=/mingw64 --build=--build= --host=x86_64-w64-mingw32"
C:\msys64\usr\bin\bash -e -l -c "make -j4"
C:\msys64\usr\bin\bash -e -l -c "make install"

:releaseWin32
if [%Platform%] NEQ [Win32] exit 0
if [%Configuration%] NEQ [Release] exit 0
C:\msys64\usr\bin\bash -e -l -c "mkdir build-Win32"
C:\msys64\usr\bin\bash -e -l -c ./autogen.sh
C:\msys64\usr\bin\bash -e -l -c "cd build-Win32"
C:\msys64\usr\bin\bash -e -l -c "build-Win32/../configure --prefix=/mingw32 --build=i686-w64-mingw32 --host=i686-w64-mingw32"
C:\msys64\usr\bin\bash -e -l -c "make -j4"
C:\msys64\usr\bin\bash -e -l -c "make install"
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ set -e

./bootstrap.sh
if test -z "$NOCONFIGURE"; then
exec ./configure --enable-maintainer-mode --enable-examples-build --enable-tests-build "$@"
exec ./configure --enable-examples-build --enable-tests-build "$@"
fi
27 changes: 3 additions & 24 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,27 +1,6 @@
#!/bin/sh

set -e

# use libtoolize if available, otherwise look for glibtoolize (darwin)
if (libtoolize --version) < /dev/null > /dev/null 2>&1; then
LIBTOOLIZE=libtoolize
elif (glibtoolize --version) < /dev/null > /dev/null 2>&1; then
LIBTOOLIZE=glibtoolize
else
echo "libtoolize or glibtoolize was not found! Please install libtool." 1>&2
exit 1
if ! test -d m4 ; then
mkdir m4
fi

# run autotools on haiku package
cd libusb/os/haiku || exit 1
$LIBTOOLIZE --copy --force || exit 1
aclocal || exit 1
autoconf || exit 1
automake -a -c || exit 1
cd ../../..

$LIBTOOLIZE --copy --force || exit 1
aclocal || exit 1
autoheader || exit 1
autoconf || exit 1
automake -a -c || exit 1
autoreconf -ivf || exit 1
Loading