mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
usb: Allow overriding of usb_desc at the device level
This allows devices to present a different set of descriptors based on device properties. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
be41efde3c
commit
386ab487eb
2 changed files with 4 additions and 0 deletions
1
hw/usb.h
1
hw/usb.h
|
@ -230,6 +230,7 @@ struct USBDevice {
|
|||
USBEndpoint ep_out[USB_MAX_ENDPOINTS];
|
||||
|
||||
QLIST_HEAD(, USBDescString) strings;
|
||||
const USBDesc *usb_desc; /* Overrides class usb_desc if not NULL */
|
||||
const USBDescDevice *device;
|
||||
|
||||
int configuration;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue