From: Juan Quintela Date: Thu, 10 Sep 2009 01:04:38 +0000 (+0200) Subject: vmstate: add support for arrays of uint16_t X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=632cf0730cfb3255b98cd3187c3f39ea50a238e4;p=qemu.git vmstate: add support for arrays of uint16_t Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- diff --git a/hw/hw.h b/hw/hw.h index 4ff7dbd7e0..b023ced049 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -483,6 +483,12 @@ extern const VMStateDescription vmstate_pci_device; #define VMSTATE_PTIMER(_f, _s) \ VMSTATE_PTIMER_V(_f, _s, 0) +#define VMSTATE_UINT16_ARRAY_V(_f, _s, _n, _v) \ + VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint16, uint16_t) + +#define VMSTATE_UINT16_ARRAY(_f, _s, _n) \ + VMSTATE_UINT16_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)