summary refs log tree commit diff stats
path: root/usb-bsd.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2011-02-02 16:33:13 +0100
committerGerd Hoffmann <kraxel@redhat.com>2011-05-26 11:55:02 +0200
commit007fd62f4d3959f2a61abe61a34a54c9f99560b0 (patch)
treeb5f3ffe9b4683aa60061047e3dbbde0ca6298364 /usb-bsd.c
parent8656954aedbd9995e68e998df734a849f8e63ade (diff)
downloadfocaccia-qemu-007fd62f4d3959f2a61abe61a34a54c9f99560b0.tar.gz
focaccia-qemu-007fd62f4d3959f2a61abe61a34a54c9f99560b0.zip
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 'usb-bsd.c')
-rw-r--r--usb-bsd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usb-bsd.c b/usb-bsd.c
index 50ccd489fe..9bab6e353b 100644
--- a/usb-bsd.c
+++ b/usb-bsd.c
@@ -126,6 +126,7 @@ static void usb_host_handle_reset(USBDevice *dev)
  *  and return appropriate response
  */
 static int usb_host_handle_control(USBDevice *dev,
+                                   USBPacket *p,
                                    int request,
                                    int value,
                                    int index,