qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 05/20] vmstate: add uint8 array


From: Juan Quintela
Subject: [Qemu-devel] [PATCH 05/20] vmstate: add uint8 array
Date: Fri, 11 Sep 2009 12:10:25 +0200

Signed-off-by: Juan Quintela <address@hidden>
---
 hw/hw.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/hw/hw.h b/hw/hw.h
index c63f65c..ac9d21d 100644
--- a/hw/hw.h
+++ b/hw/hw.h
@@ -498,6 +498,12 @@ extern const VMStateDescription vmstate_pci_device;
 #define VMSTATE_UINT16_ARRAY(_f, _s, _n)                              \
     VMSTATE_UINT16_ARRAY_V(_f, _s, _n, 0)

+#define VMSTATE_UINT8_ARRAY_V(_f, _s, _n, _v)                         \
+    VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint8, uint8_t)
+
+#define VMSTATE_UINT8_ARRAY(_f, _s, _n)                               \
+    VMSTATE_UINT8_ARRAY_V(_f, _s, _n, 0)
+
 #define VMSTATE_UINT32_ARRAY_V(_f, _s, _n, _v)                        \
     VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint32, uint32_t)

-- 
1.6.2.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]