aboutsummaryrefslogtreecommitdiff
path: root/hw/usb.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-01-24 15:38:23 +0100
committerGerd Hoffmann <kraxel@redhat.com>2013-02-19 12:30:05 +0100
commit6a98d1c0f9e4f6a95d6ecd730ae6fdc70d15c73f (patch)
tree5f4b6175a96eadfb4684f05a9c8028fa771046c7 /hw/usb.h
parente382d966d06d2989fc28eec8cfdcc2fd99ebfbb7 (diff)
downloadqemu-6a98d1c0f9e4f6a95d6ecd730ae6fdc70d15c73f.zip
qemu-6a98d1c0f9e4f6a95d6ecd730ae6fdc70d15c73f.tar.gz
qemu-6a98d1c0f9e4f6a95d6ecd730ae6fdc70d15c73f.tar.bz2
usb: make usb_packet_copy operate on combined packets
Likewise usb_packet_skip. Also usb_packet_size. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb.h')
-rw-r--r--hw/usb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb.h b/hw/usb.h
index af86fbd..0d09e02 100644
--- a/hw/usb.h
+++ b/hw/usb.h
@@ -390,6 +390,7 @@ int usb_packet_map(USBPacket *p, QEMUSGList *sgl);
void usb_packet_unmap(USBPacket *p, QEMUSGList *sgl);
void usb_packet_copy(USBPacket *p, void *ptr, size_t bytes);
void usb_packet_skip(USBPacket *p, size_t bytes);
+size_t usb_packet_size(USBPacket *p);
void usb_packet_cleanup(USBPacket *p);
static inline bool usb_packet_is_inflight(USBPacket *p)