diff mbox

[20/23] migration: Make state definitions local

Message ID d39927377ca5a712670541abe1ab94768042203c.1316782367.git.quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela Sept. 23, 2011, 12:57 p.m. UTC
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 migration.c |    8 ++++++++
 migration.h |    8 --------
 2 files changed, 8 insertions(+), 8 deletions(-)
diff mbox

Patch

diff --git a/migration.c b/migration.c
index 580f546..0213d5c 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 */

 /* When we add fault tolerance, we could have several
diff --git a/migration.h b/migration.h
index 6641a26..2090e7f 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