diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-08-30 11:11:29 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-01-13 10:25:44 +0100 |
commit | 65360511a2eeab8b671722df6634dd674cc4a5d6 (patch) | |
tree | 4a38c1dd1b525f2700d9458b40c71e83a1728bf9 /hw/usb.h | |
parent | 097db4384860b4363364eb531285296f616d89e5 (diff) |
usb: track configuration and interface count in USBDevice.
Move fields from USBHostDevice to USBDevice.
Add bits to usb-desc.c to fill them for emulated devices too.
Also allow to set configuration 0 (== None) for emulated devices.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
-rw-r--r-- | hw/usb.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -188,6 +188,9 @@ struct USBDevice { QLIST_HEAD(, USBDescString) strings; const USBDescDevice *device; + + int configuration; + int ninterfaces; const USBDescConfig *config; }; |