From patchwork Wed Oct 14 17:35:04 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 36017 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id C23E4B7B83 for ; Thu, 15 Oct 2009 05:05:02 +1100 (EST) Received: from localhost ([127.0.0.1]:41540 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My8Db-0000XB-Td for incoming@patchwork.ozlabs.org; Wed, 14 Oct 2009 14:04:59 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1My7lc-0002Uu-8d for qemu-devel@nongnu.org; Wed, 14 Oct 2009 13:36:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1My7lQ-0002OZ-S2 for qemu-devel@nongnu.org; Wed, 14 Oct 2009 13:35:58 -0400 Received: from [199.232.76.173] (port=55255 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1My7lQ-0002OK-Fi for qemu-devel@nongnu.org; Wed, 14 Oct 2009 13:35:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:29249) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1My7lQ-0008OM-1q for qemu-devel@nongnu.org; Wed, 14 Oct 2009 13:35:52 -0400 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9EHZom6011498 for ; Wed, 14 Oct 2009 13:35:50 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n9EHZXG0001016; Wed, 14 Oct 2009 13:35:49 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 14 Oct 2009 19:35:04 +0200 Message-Id: <5af059151c4c59cf9789c1691b2831f417bbdd04.1255541443.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.16 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 13/16] vmstate: Add VMSTATE_UINT32_VARRAY support X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Juan Quintela --- hw/hw.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) 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)