{-# LANGUAGE ForeignFunctionInterface #-} #include #include -- | module Bindings.Libusb.HandlingAndEnumeration where #strict_import import Bindings.Libusb.InitializationDeinitialization #opaque_t libusb_device #opaque_t libusb_device_handle #integral_t ssize_t #ccall libusb_get_device_list , Ptr -> \ Ptr (Ptr (Ptr )) -> IO #ccall libusb_free_device_list , Ptr (Ptr ) -> \ CInt -> IO () #ccall libusb_get_bus_number , Ptr -> IO Word8 #ccall libusb_get_device_address , Ptr -> IO Word8 #ccall libusb_get_max_packet_size , Ptr -> \ CUChar -> IO CInt #ccall libusb_get_max_iso_packet_size , Ptr -> CUChar -> IO CInt #ccall libusb_ref_device , Ptr -> \ IO (Ptr ) #ccall libusb_unref_device , Ptr -> IO () #ccall libusb_open , Ptr -> \ Ptr (Ptr ) -> IO CInt #ccall libusb_open_device_with_vid_pid , Ptr -> \ Word16 -> Word16 -> \ IO (Ptr ) #ccall libusb_close , Ptr -> IO () #ccall libusb_get_device , Ptr -> \ IO (Ptr ) #ccall libusb_get_configuration , Ptr -> \ Ptr CInt -> IO CInt #ccall libusb_set_configuration , Ptr -> \ CInt -> IO CInt #ccall libusb_claim_interface , Ptr -> \ CInt -> IO CInt #ccall libusb_release_interface , Ptr -> \ CInt -> IO CInt #ccall libusb_set_interface_alt_setting , Ptr -> \ CInt -> CInt -> IO CInt #ccall libusb_clear_halt , Ptr -> \ CUChar -> IO CInt #ccall libusb_reset_device , Ptr -> IO CInt #ccall libusb_kernel_driver_active , Ptr -> \ CInt -> IO CInt #ccall libusb_detach_kernel_driver , Ptr -> \ CInt -> IO CInt #ccall libusb_attach_kernel_driver , Ptr -> \ CInt -> IO CInt