add code for getting the primary interface
[project/usbmode.git] / switch.h
index eda94c2..a6d5297 100644 (file)
--- a/switch.h
+++ b/switch.h
@@ -6,8 +6,10 @@
 
 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];