diff options
author | Chris Dickens <christopher.a.dickens@gmail.com> | 2017-07-05 13:44:30 -0700 |
---|---|---|
committer | Chris Dickens <christopher.a.dickens@gmail.com> | 2017-07-06 14:26:46 -0700 |
commit | cad7d0edd9e10160ccfe6ea80428165e7b6b354e (patch) | |
tree | 98c8023a5bc8b6b23f2360dcb3c7e311fcb1e1d2 /libusb/os/linux_usbfs.c | |
parent | ef8776ddea18ad5d2bf0a9d994c4cbfb6cc6f94d (diff) | |
download | libusb-cad7d0edd9e10160ccfe6ea80428165e7b6b354e.tar.gz |
core: Kill usbi_os_backend structure definition madness
Prior to this commit, each backend provided its own uniquely named
usbi_os_backend structure and a massive pile of #ifdefs assigned the
global usbi_backend pointer to the correct one. This commit kills off
all this code and instead has each backend provide the usbi_backend
symbol directly. The linker can inform of any issues that might arise
with symbols.
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
Diffstat (limited to 'libusb/os/linux_usbfs.c')
-rw-r--r-- | libusb/os/linux_usbfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/linux_usbfs.c b/libusb/os/linux_usbfs.c index ae5b8e2..6a28554 100644 --- a/libusb/os/linux_usbfs.c +++ b/libusb/os/linux_usbfs.c @@ -2715,7 +2715,7 @@ static clockid_t op_get_timerfd_clockid(void) } #endif -const struct usbi_os_backend linux_usbfs_backend = { +const struct usbi_os_backend usbi_backend = { .name = "Linux usbfs", .caps = USBI_CAP_HAS_HID_ACCESS|USBI_CAP_SUPPORTS_DETACH_KERNEL_DRIVER, .init = op_init, |