summaryrefslogtreecommitdiff
path: root/switch.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-05-30 19:23:25 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-05-30 19:23:25 +0200
commita63255ff23043196fce74f143a6ebc79184fcdf2 (patch)
treed9c9fe0d520d77eb366a02c8ba9d2760a129d991 /switch.h
parented61a16faf025671d9ff751b827980cc44f9f088 (diff)
add code for getting the primary interface
Diffstat (limited to 'switch.h')
-rw-r--r--switch.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/switch.h b/switch.h
index eda94c2..a6d5297 100644
--- 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];