From 15c6a56e9555dbe588a106d7891bed8ddc5b0650 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Thu, 10 Mar 2011 12:33:52 +0100 Subject: vmstate: add VMSTATE_INT64_ARRAY Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- hw/hw.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hw') diff --git a/hw/hw.h b/hw/hw.h index 0ed63c52b9..d80169441d 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -802,6 +802,12 @@ extern const VMStateDescription vmstate_usb_device; #define VMSTATE_UINT32_ARRAY(_f, _s, _n) \ VMSTATE_UINT32_ARRAY_V(_f, _s, _n, 0) +#define VMSTATE_INT64_ARRAY_V(_f, _s, _n, _v) \ + VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_int64, int64_t) + +#define VMSTATE_INT64_ARRAY(_f, _s, _n) \ + VMSTATE_INT64_ARRAY_V(_f, _s, _n, 0) + #define VMSTATE_BUFFER_V(_f, _s, _v) \ VMSTATE_STATIC_BUFFER(_f, _s, _v, NULL, 0, sizeof(typeof_field(_s, _f))) -- cgit v1.2.3