Revision a1f05e79 include/migration/vmstate.h

b/include/migration/vmstate.h
339 339
    .offset     = vmstate_offset_array(_state, _field, _type, _num), \
340 340
}
341 341

  
342
#define VMSTATE_ARRAY_OF_POINTER_TO_STRUCT(_f, _s, _n, _v, _vmsd, _type) { \
343
    .name       = (stringify(_f)),                                   \
344
    .version_id = (_v),                                              \
345
    .num        = (_n),                                              \
346
    .vmsd       = &(_vmsd),                                          \
347
    .size       = sizeof(_type *),                                    \
348
    .flags      = VMS_ARRAY|VMS_STRUCT|VMS_ARRAY_OF_POINTER,         \
349
    .offset     = vmstate_offset_array(_s, _f, _type*, _n),          \
350
}
351

  
342 352
#define VMSTATE_STRUCT_ARRAY_TEST(_field, _state, _num, _test, _version, _vmsd, _type) { \
343 353
    .name         = (stringify(_field)),                             \
344 354
    .num          = (_num),                                          \

Also available in: Unified diff