diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-03-15 23:51:24 +0100 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-03-16 00:10:07 +0100 |
commit | 624bdf9fcccddc99072af39f2addcd310248254a (patch) | |
tree | fde750201b0ab0c5aa37b98fe49cfa86c474e9f6 /hw/usb/dump.h | |
parent | 8338d28302fad8e8abc00fcb36751b9728f746b2 (diff) | |
download | qemu-624bdf9fcccddc99072af39f2addcd310248254a.tar.gz |
usbdump: constantify variables
Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'hw/usb/dump.h')
-rw-r--r-- | hw/usb/dump.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/usb/dump.h b/hw/usb/dump.h index 1fb8389b60..a54bc5862d 100644 --- a/hw/usb/dump.h +++ b/hw/usb/dump.h @@ -69,7 +69,7 @@ typedef struct UsbDumpState UsbDumpState; * * If s is NULL or if no dump file is available, no action is performed. */ -void usb_dump_submit(UsbDumpState *s, USBPacket *p); +void usb_dump_submit(UsbDumpState *s, const USBPacket *p); /* * complete (ctrl): setup_is irrelevant. If PID == SETUP, then the data was just @@ -82,22 +82,22 @@ void usb_dump_submit(UsbDumpState *s, USBPacket *p); * * If s is NULL or if no dump file is available, no action is performed. */ -void usb_dump_complete(UsbDumpState *s, USBPacket *p); +void usb_dump_complete(UsbDumpState *s, const USBPacket *p); /* * submit (data): OUT request, host has data for device. * * If s is NULL or if no dump file is available, no action is performed. */ -void usb_dump_submit_data(UsbDumpState *s, USBPacket *p, - uint8_t *data, size_t len); +void usb_dump_submit_data(UsbDumpState *s, const USBPacket *p, + const uint8_t *data, size_t len); /* * complete (data): IN status, device has data for device. * * If s is NULL or if no dump file is available, no action is performed. */ -void usb_dump_complete_data(UsbDumpState *s, USBPacket *p, - uint8_t *data, size_t len); +void usb_dump_complete_data(UsbDumpState *s, const USBPacket *p, + const uint8_t *data, size_t len); void usb_dump_cleanup(UsbDumpState *s); |