Revision 543fc7b2

b/hw/hw.h
446 446
    .offset       = vmstate_offset_value(_state, _field, _type),     \
447 447
}
448 448

  
449
#define VMSTATE_STRUCT_POINTER(_field, _state, _vmsd, _type) {       \
450
    .name       = (stringify(_field)),                               \
451
    .vmsd       = &(_vmsd),                                          \
452
    .size       = sizeof(_type),                                     \
453
    .flags      = VMS_STRUCT|VMS_POINTER,                            \
454
    .offset     = vmstate_offset_value(_state, _field, _type),       \
449
#define VMSTATE_STRUCT_POINTER_TEST(_field, _state, _test, _vmsd, _type) { \
450
    .name         = (stringify(_field)),                             \
451
    .field_exists = (_test),                                         \
452
    .vmsd         = &(_vmsd),                                        \
453
    .size         = sizeof(_type),                                   \
454
    .flags        = VMS_STRUCT|VMS_POINTER,                          \
455
    .offset       = vmstate_offset_value(_state, _field, _type),     \
455 456
}
456 457

  
457 458
#define VMSTATE_ARRAY_OF_POINTER(_field, _state, _num, _version, _info, _type) {\
......
578 579
#define VMSTATE_STRUCT(_field, _state, _version, _vmsd, _type)        \
579 580
    VMSTATE_STRUCT_TEST(_field, _state, NULL, _version, _vmsd, _type)
580 581

  
582
#define VMSTATE_STRUCT_POINTER(_field, _state, _vmsd, _type)          \
583
    VMSTATE_STRUCT_POINTER_TEST(_field, _state, NULL, _vmsd, _type)
584

  
581 585
#define VMSTATE_INT8_V(_f, _s, _v)                                    \
582 586
    VMSTATE_SINGLE(_f, _s, _v, vmstate_info_int8, int8_t)
583 587
#define VMSTATE_INT16_V(_f, _s, _v)                                   \

Also available in: Unified diff