Revision 11fe0e6e hw/hw.h
b/hw/hw.h | ||
---|---|---|
436 | 436 |
.offset = offsetof(_state, _field), \ |
437 | 437 |
} |
438 | 438 |
|
439 |
#define VMSTATE_STRUCT(_field, _state, _version, _vmsd, _type) { \ |
|
440 |
.name = (stringify(_field)), \ |
|
441 |
.version_id = (_version), \ |
|
442 |
.vmsd = &(_vmsd), \ |
|
443 |
.size = sizeof(_type), \ |
|
444 |
.flags = VMS_STRUCT, \ |
|
445 |
.offset = vmstate_offset_value(_state, _field, _type), \ |
|
439 |
#define VMSTATE_STRUCT_TEST(_field, _state, _test, _version, _vmsd, _type) { \ |
|
440 |
.name = (stringify(_field)), \ |
|
441 |
.version_id = (_version), \ |
|
442 |
.field_exists = (_test), \ |
|
443 |
.vmsd = &(_vmsd), \ |
|
444 |
.size = sizeof(_type), \ |
|
445 |
.flags = VMS_STRUCT, \ |
|
446 |
.offset = vmstate_offset_value(_state, _field, _type), \ |
|
446 | 447 |
} |
447 | 448 |
|
448 | 449 |
#define VMSTATE_STRUCT_POINTER(_field, _state, _vmsd, _type) { \ |
... | ... | |
574 | 575 |
#define VMSTATE_SINGLE(_field, _state, _version, _info, _type) \ |
575 | 576 |
VMSTATE_SINGLE_TEST(_field, _state, NULL, _version, _info, _type) |
576 | 577 |
|
578 |
#define VMSTATE_STRUCT(_field, _state, _version, _vmsd, _type) \ |
|
579 |
VMSTATE_STRUCT_TEST(_field, _state, NULL, _version, _vmsd, _type) |
|
580 |
|
|
577 | 581 |
#define VMSTATE_INT8_V(_f, _s, _v) \ |
578 | 582 |
VMSTATE_SINGLE(_f, _s, _v, vmstate_info_int8, int8_t) |
579 | 583 |
#define VMSTATE_INT16_V(_f, _s, _v) \ |
Also available in: Unified diff