21 #ifndef LIBUSB_EVENTS_POSIX_H 22 #define LIBUSB_EVENTS_POSIX_H 26 typedef int usbi_os_handle_t;
27 #define USBI_OS_HANDLE_FORMAT_STRING "fd %d" 33 #define USBI_EVENT_OS_HANDLE(e) ((e)->eventfd) 34 #define USBI_EVENT_POLL_EVENTS POLLIN 35 #define USBI_INVALID_EVENT { -1 } 40 #define USBI_EVENT_OS_HANDLE(e) ((e)->pipefd[0]) 41 #define USBI_EVENT_POLL_EVENTS POLLIN 42 #define USBI_INVALID_EVENT { { -1, -1 } } 46 #define HAVE_OS_TIMER 1 50 #define USBI_TIMER_OS_HANDLE(t) ((t)->timerfd) 51 #define USBI_TIMER_POLL_EVENTS POLLIN 55 return timer->timerfd >= 0;
Definition: events_windows.h:35
Definition: events_posix.h:37