From da432cdc35ddc3e2e1374f7fc46210b4a92e6f54 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 15 Dec 2019 19:13:26 +0100 Subject: libosmocore libusb integration Osmocom applications typically use libosmocore select.[ch] event loop code as their main event dispatch mechanism. When they want to deal with libusb in a non-blocking/asynchronous way, they need to integrate libusb into that select(). The new libosmousb is doing exactly that: Providing a shared utility library for Osmocom programs that wish to use libusb. This is useful for example in simtrace2 host utilitie as well as osmo-e1d. Change-Id: I656a1a38cbb5b1f3a9145d2869d3b4d0adefcae3 Closes: OS#4299 --- include/osmocom/usb/libusb.h | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 include/osmocom/usb/libusb.h (limited to 'include/osmocom') diff --git a/include/osmocom/usb/libusb.h b/include/osmocom/usb/libusb.h new file mode 100644 index 00000000..7f10f74c --- /dev/null +++ b/include/osmocom/usb/libusb.h @@ -0,0 +1,6 @@ +#pragma once + +#include + +int osmo_libusb_init(libusb_context **luctx); +void osmo_libusb_exit(libusb_context *luctx); -- cgit v1.2.3