From 701a8f76aa5243d90a71935982c20c06d8e83b80 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 13 Jan 2012 17:07:20 +0100 Subject: vmstate: extract declarations out of hw/hw.h Signed-off-by: Paolo Bonzini Signed-off-by: Anthony Liguori --- hw/usb.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'hw/usb.h') diff --git a/hw/usb.h b/hw/usb.h index c6e1870e59..7ea90e4d9c 100644 --- a/hw/usb.h +++ b/hw/usb.h @@ -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), \ +} + + -- cgit 1.4.1