aboutsummaryrefslogtreecommitdiff
path: root/hw/hw.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-09-29 22:48:36 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-05 09:32:38 -0500
commit289070c71568b703d48d9da413ead09f4303ed30 (patch)
tree56eb453384d4a7cecb6a0d42bf1585f093149bd8 /hw/hw.h
parentaed7278dbde7bdafafe3dfab2ff5ff6f2a33164b (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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/hw.h b/hw/hw.h
index 51154ab325..c33d8d10a2 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -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)