21 #ifndef PLUGINS_USBDMX_LIBUSBTHREAD_H_
22 #define PLUGINS_USBDMX_LIBUSBTHREAD_H_
31 #include "ola/thread/Thread.h"
99 virtual void CloseHandle(libusb_device_handle *handle) = 0;
127 libusb_context*
Context()
const {
return m_context; }
130 libusb_context *m_context;
135 #if HAVE_LIBUSB_HOTPLUG_API
140 class LibUsbHotplugThread :
public LibUsbThread {
152 LibUsbHotplugThread(libusb_context *context,
153 libusb_hotplug_callback_fn callback_fn,
162 void CloseHandle(libusb_device_handle *handle);
165 libusb_hotplug_callback_handle m_hotplug_handle;
166 libusb_hotplug_callback_fn m_callback_fn;
201 unsigned int m_device_count;
208 #endif // PLUGINS_USBDMX_LIBUSBTHREAD_H_