From patchwork Fri Jul 13 07:23:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 170802 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 42F872C02F2 for ; Fri, 13 Jul 2012 17:24:20 +1000 (EST) Received: from localhost ([::1]:51139 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpaEc-0007gg-75 for incoming@patchwork.ozlabs.org; Fri, 13 Jul 2012 03:24:18 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpaEI-0007Yx-Kr for qemu-devel@nongnu.org; Fri, 13 Jul 2012 03:23:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SpaEC-0004NU-BG for qemu-devel@nongnu.org; Fri, 13 Jul 2012 03:23:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SpaEC-0004NP-3F for qemu-devel@nongnu.org; Fri, 13 Jul 2012 03:23:52 -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.14.4/8.14.4) with ESMTP id q6D7Npqn022599 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 13 Jul 2012 03:23:51 -0400 Received: from trasno.mitica (ovpn-116-28.ams2.redhat.com [10.36.116.28]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q6D7NjQs014276; Fri, 13 Jul 2012 03:23:50 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Fri, 13 Jul 2012 09:23:26 +0200 Message-Id: <1342164224-32709-5-git-send-email-quintela@redhat.com> In-Reply-To: <1342164224-32709-1-git-send-email-quintela@redhat.com> References: <1342164224-32709-1-git-send-email-quintela@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 04/22] 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 --- 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;