X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fusbmode.git;a=blobdiff_plain;f=switch.h;h=eb5968f217225b6c1c5ca43c3e5528d1cfaed3cc;hp=eda94c28fc9c07c81a5f89fb5897a2d3268465de;hb=5da2894852546646990c6fee47c9521143176c1a;hpb=7fdfb969d521f5198345b675081aa220743de909;ds=sidebyside diff --git a/switch.h b/switch.h index eda94c2..eb5968f 100644 --- a/switch.h +++ b/switch.h @@ -6,21 +6,15 @@ struct usbdev_data { struct libusb_device_descriptor desc; + struct libusb_config_descriptor *config; libusb_device_handle *devh; struct blob_attr *info; + int interface; char idstr[10]; char mfg[128], prod[128], serial[128]; }; -enum { - DATA_MODE, - DATA_MSG, - DATA_MSG2, - DATA_MSG3, - __DATA_MAX -}; - void handle_switch(struct usbdev_data *data); #endif