mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
49d4d9b63e
commit
701a8f76aa
10 changed files with 957 additions and 891 deletions
12
hw/usb.h
12
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), \
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue