X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fusbmode.git;a=blobdiff_plain;f=switch.h;h=e4993267bbe112773ad50bae47cc2ff8b0bb0363;hp=1c964db582f588fccc77b897cac92391e1a5594b;hb=d8dc33512453fa73264a1990b25496da6cfd2a4a;hpb=925b9857173f5086c4afeed0a09fa29496b504ae diff --git a/switch.h b/switch.h index 1c964db..e499326 100644 --- a/switch.h +++ b/switch.h @@ -7,20 +7,24 @@ 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 struct blob_attr **messages; +extern char **messages; extern int *message_len; extern int n_messages; +extern struct libusb_context *usb; void handle_switch(struct usbdev_data *data);