27 #include <linux/version.h> 28 #if LINUX_VERSION_CODE > KERNEL_VERSION(2, 6, 20) 29 #include <linux/usb/ch9.h> 31 #include <linux/usb_ch9.h> 35 struct usb_endpoint_descriptor;
159 size_t* response_size);
220 unsigned int interface,
int connect);
227 unsigned int alt_setting);
253 const struct usb_endpoint_descriptor *ep_desc);
void usb_request_free(struct usb_request *req)
struct usb_request * usb_request_wait(struct usb_device *dev, int timeoutMillis)
int(* usb_device_removed_cb)(const char *dev_name, void *client_data)
const struct usb_device_descriptor * usb_device_get_device_descriptor(struct usb_device *device)
struct usb_request * usb_request_new(struct usb_device *dev, const struct usb_endpoint_descriptor *ep_desc)
GLuint const GLchar * name
int usb_host_load(struct usb_host_context *context, usb_device_added_cb added_cb, usb_device_removed_cb removed_cb, usb_discovery_done_cb discovery_done_cb, void *client_data)
int usb_device_set_configuration(struct usb_device *device, int configuration)
int usb_device_set_interface(struct usb_device *device, unsigned int interface, unsigned int alt_setting)
uint16_t usb_device_get_vendor_id(struct usb_device *device)
int usb_device_get_unique_id(struct usb_device *device)
unsigned char * config_end
const char * usb_device_get_name(struct usb_device *device)
int usb_device_bulk_transfer(struct usb_device *device, int endpoint, void *buffer, unsigned int length, unsigned int timeout)
int(* usb_discovery_done_cb)(void *client_data)
struct usb_descriptor_header * usb_descriptor_iter_next(struct usb_descriptor_iter *iter)
unsigned char * curr_desc
int usb_device_control_transfer(struct usb_device *device, int requestType, int request, int value, int index, void *buffer, int length, unsigned int timeout)
char * usb_device_get_manufacturer_name(struct usb_device *device, int timeout)
int usb_device_get_fd(struct usb_device *device)
char * usb_device_get_name_from_unique_id(int id)
int usb_device_claim_interface(struct usb_device *device, unsigned int interface)
int usb_device_connect_kernel_driver(struct usb_device *device, unsigned int interface, int connect)
int usb_device_is_writeable(struct usb_device *device)
uint16_t usb_device_get_product_id(struct usb_device *device)
int(* usb_device_added_cb)(const char *dev_name, void *client_data)
size_t usb_device_get_descriptors_length(const struct usb_device *device)
int usb_device_get_string_ucs2(struct usb_device *device, int id, int timeout, void **ucs2_out, size_t *response_size)
void usb_host_run(struct usb_host_context *context, usb_device_added_cb added_cb, usb_device_removed_cb removed_cb, usb_discovery_done_cb discovery_done_cb, void *client_data)
int usb_device_get_unique_id_from_name(const char *name)
int usb_host_get_fd(struct usb_host_context *context)
struct usb_device * usb_device_new(const char *dev_name, int fd)
int usb_request_cancel(struct usb_request *req)
GLbitfield GLuint64 timeout
char * usb_device_get_product_name(struct usb_device *device, int timeout)
char * usb_device_get_serial(struct usb_device *device, int timeout)
const unsigned char * usb_device_get_raw_descriptors(const struct usb_device *device)
int usb_device_release_interface(struct usb_device *device, unsigned int interface)
void usb_host_cleanup(struct usb_host_context *context)
void usb_device_close(struct usb_device *device)
GLenum GLuint GLenum GLsizei length
int usb_request_queue(struct usb_request *req)
int usb_device_get_version(struct usb_device *device)
struct usb_device * usb_device_open(const char *dev_name)
int usb_device_reset(struct usb_device *device)
void usb_descriptor_iter_init(struct usb_device *device, struct usb_descriptor_iter *iter)
int usb_host_read_event(struct usb_host_context *context)
struct usb_host_context * usb_host_init(void)
char * usb_device_get_string(struct usb_device *device, int id, int timeout)