diff options
author | 2012-01-13 17:07:20 +0100 | |
---|---|---|
committer | 2012-01-13 10:20:51 -0600 | |
commit | 701a8f76aa5243d90a71935982c20c06d8e83b80 (patch) | |
tree | 0cd413bfa739326cb70b251d3ed2b698d0debb41 /hw/usb.h | |
parent | ptimer: move declarations to ptimer.h (diff) | |
download | qemu-701a8f76aa5243d90a71935982c20c06d8e83b80.tar.xz qemu-701a8f76aa5243d90a71935982c20c06d8e83b80.zip |
vmstate: extract declarations out of hw/hw.h
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/usb.h')
-rw-r--r-- | hw/usb.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -392,3 +392,15 @@ static inline USBBus *usb_bus_from_device(USBDevice *d) { return DO_UPCAST(USBBus, qbus, d->qdev.parent_bus); } + +extern const VMStateDescription vmstate_usb_device; + +#define VMSTATE_USB_DEVICE(_field, _state) { \ + .name = (stringify(_field)), \ + .size = sizeof(USBDevice), \ + .vmsd = &vmstate_usb_device, \ + .flags = VMS_STRUCT, \ + .offset = vmstate_offset_value(_state, _field, USBDevice), \ +} + + |