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) | |
| download | focaccia-qemu-65360511a2eeab8b671722df6634dd674cc4a5d6.tar.gz focaccia-qemu-65360511a2eeab8b671722df6634dd674cc4a5d6.zip | |
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
diff --git a/hw/usb.h b/hw/usb.h index c6e1870e59..1ef53a102f 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -188,6 +188,9 @@ struct USBDevice { QLIST_HEAD(, USBDescString) strings; const USBDescDevice *device; + + int configuration; + int ninterfaces; const USBDescConfig *config; }; |