From patchwork Thu Jun 28 19:22:02 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 167946 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B1338B7004 for ; Fri, 29 Jun 2012 05:23:36 +1000 (EST) Received: from localhost ([::1]:36542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkKJS-0001Oh-DP for incoming@patchwork.ozlabs.org; Thu, 28 Jun 2012 15:23:34 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkKII-0007Ak-1K for qemu-devel@nongnu.org; Thu, 28 Jun 2012 15:22:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SkKIG-0002uX-G1 for qemu-devel@nongnu.org; Thu, 28 Jun 2012 15:22:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SkKIG-0002u2-8T for qemu-devel@nongnu.org; Thu, 28 Jun 2012 15:22:20 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q5SJMItM022121 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 28 Jun 2012 15:22:19 -0400 Received: from trasno.mitica (ovpn-116-23.ams2.redhat.com [10.36.116.23]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q5SJMB7s000894; Thu, 28 Jun 2012 15:22:17 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Thu, 28 Jun 2012 21:22:02 +0200 Message-Id: <509b501d09f18212b4165ee116ddef4ceba59097.1340910651.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: owasserm@redhat.com Subject: [Qemu-devel] [PATCH 04/12] savevm: remove SaveLiveStateHandler X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org It was used only once, just unfold. Signed-off-by: Juan Quintela Reviewed-by: Orit Wasserman --- vmstate.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vmstate.h b/vmstate.h index 5e1a7cc..0e24834 100644 --- a/vmstate.h +++ b/vmstate.h @@ -27,13 +27,12 @@ #define QEMU_VMSTATE_H 1 typedef void SaveStateHandler(QEMUFile *f, void *opaque); -typedef int SaveLiveStateHandler(QEMUFile *f, int stage, void *opaque); typedef int LoadStateHandler(QEMUFile *f, void *opaque, int version_id); typedef struct SaveVMHandlers { void (*set_params)(const MigrationParams *params, void * opaque); SaveStateHandler *save_state; - SaveLiveStateHandler *save_live_state; + int (*save_live_state)(QEMUFile *f, int stage, void *opaque); LoadStateHandler *load_state; } SaveVMHandlers;