Patchwork [13/16] vmstate: Add VMSTATE_UINT32_VARRAY support

login
register
mail settings
Submitter Juan Quintela
Date Oct. 14, 2009, 5:35 p.m.
Message ID <5af059151c4c59cf9789c1691b2831f417bbdd04.1255541443.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/36017/
State New
Headers show

Comments

Juan Quintela - Oct. 14, 2009, 5:35 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/hw.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/hw.h b/hw/hw.h
index 6f7b7d4..8d2352c 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -617,6 +617,12 @@  extern const VMStateDescription vmstate_i2c_slave;
 #define VMSTATE_INT32_VARRAY(_f, _s, _f_n)                            \
     VMSTATE_INT32_VARRAY_V(_f, _s, _f_n, 0)

+#define VMSTATE_UINT32_VARRAY_V(_f, _s, _f_n, _v)                      \
+    VMSTATE_VARRAY(_f, _s, _f_n, _v, vmstate_info_uint32, uint32_t)
+
+#define VMSTATE_UINT32_VARRAY(_f, _s, _f_n)                            \
+    VMSTATE_UINT32_VARRAY_V(_f, _s, _f_n, 0)
+
 #define VMSTATE_BUFFER_V(_f, _s, _v)                                  \
     VMSTATE_STATIC_BUFFER(_f, _s, _v)