From patchwork Fri Sep 11 10:10:32 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 33434 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 59D1DB7067 for ; Fri, 11 Sep 2009 20:39:59 +1000 (EST) Received: from localhost ([127.0.0.1]:55822 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mm3Xn-00023V-JE for incoming@patchwork.ozlabs.org; Fri, 11 Sep 2009 06:39:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mm38P-0004TW-Ue for qemu-devel@nongnu.org; Fri, 11 Sep 2009 06:13:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mm38L-0004Qf-7v for qemu-devel@nongnu.org; Fri, 11 Sep 2009 06:13:40 -0400 Received: from [199.232.76.173] (port=36113 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mm38K-0004QS-Lt for qemu-devel@nongnu.org; Fri, 11 Sep 2009 06:13:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48492) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mm38J-00015G-Rk for qemu-devel@nongnu.org; Fri, 11 Sep 2009 06:13:36 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8BADYL4022351 for ; Fri, 11 Sep 2009 06:13:34 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8BADJVd025817; Fri, 11 Sep 2009 06:13:33 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Fri, 11 Sep 2009 12:10:32 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 12/20] vmstate: create VMSTATE_INT16_ARRAY 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 649eb24..9bf3369 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -536,6 +536,12 @@ extern const VMStateDescription vmstate_i2c_slave; #define VMSTATE_UINT64_ARRAY(_f, _s, _n) \ VMSTATE_UINT64_ARRAY_V(_f, _s, _n, 0) +#define VMSTATE_INT16_ARRAY_V(_f, _s, _n, _v) \ + VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_int16, int16_t) + +#define VMSTATE_INT16_ARRAY(_f, _s, _n) \ + VMSTATE_INT16_ARRAY_V(_f, _s, _n, 0) + #define VMSTATE_INT32_ARRAY_V(_f, _s, _n, _v) \ VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_int32, int32_t)