summaryrefslogtreecommitdiff
path: root/libusb/libusbi.h
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2020-01-26 22:01:50 -0800
committerChris Dickens <christopher.a.dickens@gmail.com>2020-01-26 22:01:50 -0800
commitf128429320de75d0cd184acbf91d8ae8181e16d0 (patch)
treeb33b76aaba1f03a23982fdfcca87b31d8bb1d228 /libusb/libusbi.h
parent80d2238cb80469aee03d0367080350496d8548eb (diff)
downloadlibusb-f128429320de75d0cd184acbf91d8ae8181e16d0.tar.gz
linux_usbfs: Drop support for kernel versions earlier than 2.6.32
The Linux backend plays lots of games to try and work with older versions of the kernel that do not have certain features. Lets simplify the backend by requiring at least 2.6.32 to use libusb. The only thing remaining that still requires explicit version checking is the maximum iso frame packet size. Anything running 2.6.32 or later is sure to have a functional monotonic clock, so this change also allows the removal of the get_timerfd_clock() function from the backend as well as the check for a functional monotonic clock during initialization. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/libusbi.h')
-rw-r--r--libusb/libusbi.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h
index 6cc6f92..2ce448a 100644
--- a/libusb/libusbi.h
+++ b/libusb/libusbi.h
@@ -1157,11 +1157,6 @@ struct usbi_os_backend {
*/
int (*clock_gettime)(int clkid, struct timespec *tp);
-#ifdef HAVE_TIMERFD
- /* clock ID of the clock that should be used for timerfd */
- clockid_t (*get_timerfd_clockid)(void);
-#endif
-
/* Number of bytes to reserve for per-context private backend data.
* This private data area is accessible through the "os_priv" field of
* struct libusb_context. */