X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=switch.h;h=e4993267bbe112773ad50bae47cc2ff8b0bb0363;hb=8a47c4b6649f8437bb60300471400d558426612e;hp=eb5968f217225b6c1c5ca43c3e5528d1cfaed3cc;hpb=5da2894852546646990c6fee47c9521143176c1a;p=project%2Fusbmode.git diff --git a/switch.h b/switch.h index eb5968f..e499326 100644 --- a/switch.h +++ b/switch.h @@ -7,14 +7,25 @@ struct usbdev_data { struct libusb_device_descriptor desc; struct libusb_config_descriptor *config; + libusb_device *dev; libusb_device_handle *devh; struct blob_attr *info; int interface; + int msg_endpoint; + int response_endpoint; + int release_delay; + int dev_class; + bool need_response; char idstr[10]; char mfg[128], prod[128], serial[128]; }; +extern char **messages; +extern int *message_len; +extern int n_messages; +extern struct libusb_context *usb; + void handle_switch(struct usbdev_data *data); #endif