Revision 13801f32

b/hw/hw.h
475 475
    .offset     = vmstate_offset_array(_state, _field, _type, _num), \
476 476
}
477 477

  
478
#define VMSTATE_STRUCT_ARRAY(_field, _state, _num, _version, _vmsd, _type) { \
479
    .name       = (stringify(_field)),                               \
480
    .num        = (_num),                                            \
481
    .version_id = (_version),                                        \
482
    .vmsd       = &(_vmsd),                                          \
483
    .size       = sizeof(_type),                                     \
484
    .flags      = VMS_STRUCT|VMS_ARRAY,                              \
485
    .offset     = vmstate_offset_array(_state, _field, _type, _num), \
478
#define VMSTATE_STRUCT_ARRAY_TEST(_field, _state, _num, _test, _version, _vmsd, _type) { \
479
    .name         = (stringify(_field)),                             \
480
    .num          = (_num),                                          \
481
    .field_exists = (_test),                                         \
482
    .version_id   = (_version),                                      \
483
    .vmsd         = &(_vmsd),                                        \
484
    .size         = sizeof(_type),                                   \
485
    .flags        = VMS_STRUCT|VMS_ARRAY,                            \
486
    .offset       = vmstate_offset_array(_state, _field, _type, _num),\
486 487
}
487 488

  
488 489
#define VMSTATE_STRUCT_VARRAY_UINT8(_field, _state, _field_num, _version, _vmsd, _type) { \
......
625 626
#define VMSTATE_STRUCT_POINTER(_field, _state, _vmsd, _type)          \
626 627
    VMSTATE_STRUCT_POINTER_TEST(_field, _state, NULL, _vmsd, _type)
627 628

  
629
#define VMSTATE_STRUCT_ARRAY(_field, _state, _num, _version, _vmsd, _type) \
630
    VMSTATE_STRUCT_ARRAY_TEST(_field, _state, _num, NULL, _version,   \
631
            _vmsd, _type)
632

  
628 633
#define VMSTATE_BOOL_V(_f, _s, _v)                                    \
629 634
    VMSTATE_SINGLE(_f, _s, _v, vmstate_info_bool, bool)
630 635

  

Also available in: Unified diff