diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2011-05-12 13:20:39 +0200 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-05-26 11:55:03 +0200 |
| commit | 53aa8c0e2af473050fa765533a8d69f3450788ab (patch) | |
| tree | 74cdb5f5490f5c05cc4ceb1dd5caf617e165197f /hw/usb.h | |
| parent | ebd669a19f00d0ff8370e1edfb6232f50e42110d (diff) | |
| download | focaccia-qemu-53aa8c0e2af473050fa765533a8d69f3450788ab.tar.gz focaccia-qemu-53aa8c0e2af473050fa765533a8d69f3450788ab.zip | |
usb: add usb_handle_packet
Add a usb_handle_packet function, put it into use everywhere. Right now it just calls dev->info->handle_packet(), that will change in future patches though. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
| -rw-r--r-- | hw/usb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb.h b/hw/usb.h index c1d10147bb..68894671bf 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -266,6 +266,8 @@ struct USBPacket { void *cancel_opaque; }; +int usb_handle_packet(USBDevice *dev, USBPacket *p); + /* Defer completion of a USB packet. The hadle_packet routine should then return USB_RET_ASYNC. Packets that complete immediately (before handle_packet returns) should not call this method. */ |