1 #ifndef __USBMODE_SWITCH_H
2 #define __USBMODE_SWITCH_H
4 #include <libubox/blobmsg.h>
8 struct libusb_device_descriptor desc;
9 struct libusb_config_descriptor *config;
11 libusb_device_handle *devh;
12 struct blob_attr *info;
15 int response_endpoint;
21 char mfg[128], prod[128], serial[128];
24 extern char **messages;
25 extern int *message_len;
26 extern int n_messages;
27 extern struct libusb_context *usb;
29 void handle_switch(struct usbdev_data *data);