Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libusb updates #2

Open
wants to merge 229 commits into
base: android_usbfd
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
core: Do not arm timer-fd for transfers where the os handles timeout
Signed-off-by: Hans de Goede <[email protected]>
jwrdegoede authored and hjelmn committed Aug 17, 2016
commit 06e86793be2efe098022fcba20be8624285132f1
2 changes: 1 addition & 1 deletion libusb/io.c
Original file line number Diff line number Diff line change
@@ -1338,7 +1338,7 @@ static int arm_timerfd_for_next_timeout(struct libusb_context *ctx)
goto disarm;

/* act on first transfer that has not already been handled */
if (!(transfer->timeout_flags & USBI_TRANSFER_TIMEOUT_HANDLED)) {
if (!(transfer->timeout_flags & (USBI_TRANSFER_TIMEOUT_HANDLED | USBI_TRANSFER_OS_HANDLES_TIMEOUT))) {
int r;
const struct itimerspec it = { {0, 0},
{ cur_tv->tv_sec, cur_tv->tv_usec * 1000 } };
2 changes: 1 addition & 1 deletion libusb/version_nano.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define LIBUSB_NANO 11132
#define LIBUSB_NANO 11133