#include #include -- | module Bindings.Libusb.PollingAndTiming where import Foreign import Foreign.C import Bindings.Posix.Sys.Select import Bindings.Libusb.InitializationDeinitialization #starttype struct libusb_pollfd #field fd , CInt #field events , CShort #stoptype #callback libusb_pollfd_added_cb , CInt -> CShort -> Ptr () -> IO () #callback libusb_pollfd_removed_cb , CInt -> Ptr () -> IO () #ccall libusb_try_lock_events , Ptr -> IO CInt #ccall libusb_lock_events , Ptr -> IO () #ccall libusb_unlock_events , Ptr -> IO () #ccall libusb_event_handling_ok , Ptr -> IO CInt #ccall libusb_event_handler_active , Ptr -> IO CInt #ccall libusb_lock_event_waiters , Ptr -> IO () #ccall libusb_unlock_event_waiters , Ptr -> IO () #ccall libusb_wait_for_event , Ptr -> \ Ptr -> IO CInt #ccall libusb_handle_events_timeout , Ptr -> \ Ptr -> IO CInt #ccall libusb_handle_events , Ptr -> IO CInt #ccall libusb_handle_events_locked , Ptr -> \ Ptr -> IO CInt #ccall libusb_get_next_timeout , Ptr -> \ Ptr -> IO CInt #ccall libusb_set_pollfd_notifiers , Ptr -> \ -> -> \ Ptr () -> IO () #ccall libusb_get_pollfds , Ptr -> \ IO (Ptr (Ptr ))