From patchwork Wed Feb 23 21:47:30 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 84250 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 46BC9B70D3 for ; Thu, 24 Feb 2011 09:03:18 +1100 (EST) Received: from localhost ([127.0.0.1]:38817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsMn7-0006ei-CI for incoming@patchwork.ozlabs.org; Wed, 23 Feb 2011 17:02:37 -0500 Received: from [140.186.70.92] (port=35668 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsMZE-0000R2-PU for qemu-devel@nongnu.org; Wed, 23 Feb 2011 16:48:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsMZA-0005FU-Me for qemu-devel@nongnu.org; Wed, 23 Feb 2011 16:48:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2812) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsMZA-0005FH-EK for qemu-devel@nongnu.org; Wed, 23 Feb 2011 16:48:12 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p1NLmBG3028045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 23 Feb 2011 16:48:11 -0500 Received: from trasno.mitica (ovpn-113-97.phx2.redhat.com [10.3.113.97]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p1NLlhCD020923; Wed, 23 Feb 2011 16:48:10 -0500 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 23 Feb 2011 22:47:30 +0100 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 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 21/28] migration: Make state definitions local 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 --- migration.c | 8 ++++++++ migration.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/migration.c b/migration.c index 493c2d7..697c74f 100644 --- a/migration.c +++ b/migration.c @@ -31,6 +31,14 @@ do { } while (0) #endif +enum migration_state { + MIG_STATE_ERROR, + MIG_STATE_NONE, + MIG_STATE_CANCELLED, + MIG_STATE_ACTIVE, + MIG_STATE_COMPLETED, +}; + #define MAX_THROTTLE (32 << 20) /* Migration speed throttling */ static MigrationState current_migration = { diff --git a/migration.h b/migration.h index 3c5bb6a..e1fc921 100644 --- a/migration.h +++ b/migration.h @@ -18,14 +18,6 @@ #include "qemu-common.h" #include "notify.h" -enum migration_state { - MIG_STATE_ERROR, - MIG_STATE_NONE, - MIG_STATE_CANCELLED, - MIG_STATE_ACTIVE, - MIG_STATE_COMPLETED, -}; - typedef struct MigrationState MigrationState; struct MigrationState