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>
This commit is contained in:
Gerd Hoffmann 2011-05-12 13:20:39 +02:00
parent ebd669a19f
commit 53aa8c0e2a
6 changed files with 22 additions and 7 deletions

View file

@ -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. */