1 // SPDX-License-Identifier: GPL-2.0-or-later
2 #ifndef __USBMODE_SWITCH_H
3 #define __USBMODE_SWITCH_H
5 #include <libubox/blobmsg.h>
9 struct libusb_device_descriptor desc
;
10 struct libusb_config_descriptor
*config
;
12 libusb_device_handle
*devh
;
13 struct blob_attr
*info
;
16 int response_endpoint
;
22 char mfg
[128], prod
[128], serial
[128];
25 extern char **messages
;
26 extern int *message_len
;
27 extern int n_messages
;
28 extern struct libusb_context
*usb
;
30 void handle_switch(struct usbdev_data
*data
);