diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-02-02 16:33:13 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-05-26 11:55:02 +0200 |
commit | 007fd62f4d3959f2a61abe61a34a54c9f99560b0 (patch) | |
tree | b5f3ffe9b4683aa60061047e3dbbde0ca6298364 /hw/usb-desc.h | |
parent | 8656954aedbd9995e68e998df734a849f8e63ade (diff) | |
download | qemu-007fd62f4d3959f2a61abe61a34a54c9f99560b0.zip qemu-007fd62f4d3959f2a61abe61a34a54c9f99560b0.tar.gz qemu-007fd62f4d3959f2a61abe61a34a54c9f99560b0.tar.bz2 |
usb: Pass the packet to the device's handle_control callback
This allows using the generic usb_generic_handle_packet function from
device code which does ASYNC control requests (such as the linux host
pass through code).
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'hw/usb-desc.h')
-rw-r--r-- | hw/usb-desc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/usb-desc.h b/hw/usb-desc.h index a612515..9d7ed59 100644 --- a/hw/usb-desc.h +++ b/hw/usb-desc.h @@ -106,7 +106,7 @@ void usb_desc_set_string(USBDevice *dev, uint8_t index, const char *str); const char *usb_desc_get_string(USBDevice *dev, uint8_t index); int usb_desc_string(USBDevice *dev, int index, uint8_t *dest, size_t len); int usb_desc_get_descriptor(USBDevice *dev, int value, uint8_t *dest, size_t len); -int usb_desc_handle_control(USBDevice *dev, int request, int value, - int index, int length, uint8_t *data); +int usb_desc_handle_control(USBDevice *dev, USBPacket *p, + int request, int value, int index, int length, uint8_t *data); #endif /* QEMU_HW_USB_DESC_H */ |