allow the device data to override the interface
[project/usbmode.git] / switch.h
index eda94c2..eb5968f 100644 (file)
--- 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