diff options
author | Juan Quintela <quintela@redhat.com> | 2009-10-16 11:27:17 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-27 12:28:49 -0500 |
commit | d6698281e21b7d3c97090bf626b8d8b008dc48e2 (patch) | |
tree | 9eecd9a6e83801b0b8fd44a7b2f1b95a5e013779 /hw/hw.h | |
parent | dc3b83a062337d55edd537645fded337ba013343 (diff) |
vmstate: Rename VMS_VARRAY to VMS_VARRAY_INT32
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/hw.h')
-rw-r--r-- | hw/hw.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -285,7 +285,7 @@ enum VMStateFlags { VMS_POINTER = 0x002, VMS_ARRAY = 0x004, VMS_STRUCT = 0x008, - VMS_VARRAY = 0x010, /* Array with size in another field */ + VMS_VARRAY_INT32 = 0x010, /* Array with size in another field */ VMS_BUFFER = 0x020, /* static sized buffer */ VMS_ARRAY_OF_POINTER = 0x040, }; @@ -390,14 +390,14 @@ extern const VMStateInfo vmstate_info_buffer; + type_check_array(_type,typeof_field(_state, _field),_num) \ } -#define VMSTATE_VARRAY(_field, _state, _field_num, _version, _info, _type) {\ +#define VMSTATE_VARRAY_INT32(_field, _state, _field_num, _version, _info, _type) {\ .name = (stringify(_field)), \ .version_id = (_version), \ .num_offset = offsetof(_state, _field_num) \ + type_check(int32_t,typeof_field(_state, _field_num)), \ .info = &(_info), \ .size = sizeof(_type), \ - .flags = VMS_VARRAY|VMS_POINTER, \ + .flags = VMS_VARRAY_INT32|VMS_POINTER, \ .offset = offsetof(_state, _field) \ + type_check_pointer(_type,typeof_field(_state, _field)) \ } @@ -628,7 +628,7 @@ extern const VMStateDescription vmstate_i2c_slave; VMSTATE_INT32_ARRAY_V(_f, _s, _n, 0) #define VMSTATE_INT32_VARRAY_V(_f, _s, _f_n, _v) \ - VMSTATE_VARRAY(_f, _s, _f_n, _v, vmstate_info_int32, int32_t) + VMSTATE_VARRAY_INT32(_f, _s, _f_n, _v, vmstate_info_int32, int32_t) #define VMSTATE_INT32_VARRAY(_f, _s, _f_n) \ VMSTATE_INT32_VARRAY_V(_f, _s, _f_n, 0) |