From patchwork Wed Feb 23 00:44:36 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 84027 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 61B3CB7105 for ; Wed, 23 Feb 2011 12:02:32 +1100 (EST) Received: from localhost ([127.0.0.1]:57542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ps37d-00028T-9K for incoming@patchwork.ozlabs.org; Tue, 22 Feb 2011 20:02:29 -0500 Received: from [140.186.70.92] (port=36764 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ps2qv-00033Z-Oj for qemu-devel@nongnu.org; Tue, 22 Feb 2011 19:45:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ps2qu-0005NC-RV for qemu-devel@nongnu.org; Tue, 22 Feb 2011 19:45:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ps2qu-0005Mu-Ia for qemu-devel@nongnu.org; Tue, 22 Feb 2011 19:45:12 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p1N0jBxC001941 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 22 Feb 2011 19:45:11 -0500 Received: from trasno.mitica (ovpn-113-108.phx2.redhat.com [10.3.113.108]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p1N0ig3E026523; Tue, 22 Feb 2011 19:45:10 -0500 From: Juan Quintela To: qemu-devel@nongnu.org Date: Wed, 23 Feb 2011 01:44:36 +0100 Message-Id: <83ec39769be88d8e9916e2180830765c722eebaa.1298421307.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 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 22/22] 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 | 6 ++++++ migration.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/migration.c b/migration.c index 383ebaf..90fc2a0 100644 --- a/migration.c +++ b/migration.c @@ -31,6 +31,12 @@ do { } while (0) #endif +#define MIG_STATE_ERROR -1 +#define MIG_STATE_NONE 0 +#define MIG_STATE_CANCELLED 1 +#define MIG_STATE_ACTIVE 2 +#define MIG_STATE_COMPLETED 3 + static MigrationState current_migration = { .state = MIG_STATE_NONE, /* Migration speed throttling */ diff --git a/migration.h b/migration.h index 9457807..493fbe5 100644 --- a/migration.h +++ b/migration.h @@ -18,12 +18,6 @@ #include "qemu-common.h" #include "notify.h" -#define MIG_STATE_ERROR -1 -#define MIG_STATE_NONE 0 -#define MIG_STATE_CANCELLED 1 -#define MIG_STATE_ACTIVE 2 -#define MIG_STATE_COMPLETED 3 - typedef struct MigrationState MigrationState; struct MigrationState