diff options
author | Juan Quintela <quintela@redhat.com> | 2009-09-29 22:48:36 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:38 -0500 |
commit | 289070c71568b703d48d9da413ead09f4303ed30 (patch) | |
tree | 56eb453384d4a7cecb6a0d42bf1585f093149bd8 /hw/hw.h | |
parent | aed7278dbde7bdafafe3dfab2ff5ff6f2a33164b (diff) |
vmstate: create VMSTATE_INT16_ARRAY
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 | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -548,6 +548,12 @@ extern const VMStateDescription vmstate_i2c_slave; #define VMSTATE_UINT64_ARRAY(_f, _s, _n) \ VMSTATE_UINT64_ARRAY_V(_f, _s, _n, 0) +#define VMSTATE_INT16_ARRAY_V(_f, _s, _n, _v) \ + VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_int16, int16_t) + +#define VMSTATE_INT16_ARRAY(_f, _s, _n) \ + VMSTATE_INT16_ARRAY_V(_f, _s, _n, 0) + #define VMSTATE_INT32_ARRAY_V(_f, _s, _n, _v) \ VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_int32, int32_t) |