From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37292) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoF2U-0005X7-Df for qemu-devel@nongnu.org; Sun, 16 Jun 2013 11:38:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoF2S-0000Pf-UF for qemu-devel@nongnu.org; Sun, 16 Jun 2013 11:38:46 -0400 Received: from e28smtp07.in.ibm.com ([122.248.162.7]:55157) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoF2S-0000Oz-8q for qemu-devel@nongnu.org; Sun, 16 Jun 2013 11:38:44 -0400 Received: from /spool/local by e28smtp07.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Sun, 16 Jun 2013 21:01:52 +0530 Received: from d28relay02.in.ibm.com (d28relay02.in.ibm.com [9.184.220.59]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id BFCEAE0054 for ; Sun, 16 Jun 2013 21:07:57 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay02.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r5GFceVd24838324 for ; Sun, 16 Jun 2013 21:08:41 +0530 Received: from d28av01.in.ibm.com (loopback [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r5GFcXp8018996 for ; Sun, 16 Jun 2013 15:38:33 GMT From: Lei Li Date: Sun, 16 Jun 2013 23:37:27 +0800 Message-Id: <1371397053-4503-2-git-send-email-lilei@linux.vnet.ibm.com> In-Reply-To: <1371397053-4503-1-git-send-email-lilei@linux.vnet.ibm.com> References: <1371397053-4503-1-git-send-email-lilei@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 1/7] migration: export MIG_STATE_xxx flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: lagarcia@br.ibm.com, aliguori@us.ibm.com, Lei Li , quintela@redhat.com Signed-off-by: Lei Li --- include/migration/migration.h | 8 ++++++++ migration.c | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/migration/migration.h b/include/migration/migration.h index e2acec6..8866c3c 100644 --- a/include/migration/migration.h +++ b/include/migration/migration.h @@ -22,6 +22,14 @@ #include "migration/vmstate.h" #include "qapi-types.h" +enum { + MIG_STATE_ERROR, + MIG_STATE_SETUP, + MIG_STATE_CANCELLED, + MIG_STATE_ACTIVE, + MIG_STATE_COMPLETED, +}; + struct MigrationParams { bool blk; bool shared; diff --git a/migration.c b/migration.c index 058f9e6..0921ace 100644 --- a/migration.c +++ b/migration.c @@ -35,14 +35,6 @@ do { } while (0) #endif -enum { - MIG_STATE_ERROR, - MIG_STATE_SETUP, - MIG_STATE_CANCELLED, - MIG_STATE_ACTIVE, - MIG_STATE_COMPLETED, -}; - #define MAX_THROTTLE (32 << 20) /* Migration speed throttling */ /* Amount of time to allocate to each "chunk" of bandwidth-throttled -- 1.7.7.6