aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2011-02-23 00:48:46 +0100
committerJuan Quintela <quintela@redhat.com>2011-10-20 13:23:54 +0200
commit7dc688ed71ff7b8509d4bf8bdc4c4cb6c25a9917 (patch)
treefa72c78f634bcb47ae2c335bc9fbb1ae99c20db4
parent7073693bfbde541eca0cc778e1b2c30d43a65c4b (diff)
downloadqemu-7dc688ed71ff7b8509d4bf8bdc4c4cb6c25a9917.zip
qemu-7dc688ed71ff7b8509d4bf8bdc4c4cb6c25a9917.tar.gz
qemu-7dc688ed71ff7b8509d4bf8bdc4c4cb6c25a9917.tar.bz2
migration: Make state definitions local
Signed-off-by: Juan Quintela <quintela@redhat.com>
-rw-r--r--migration.c8
-rw-r--r--migration.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/migration.c b/migration.c
index b5929db..3db12ef 100644
--- a/migration.c
+++ b/migration.c
@@ -31,6 +31,14 @@
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 */
static NotifierList migration_state_notifiers =
diff --git a/migration.h b/migration.h
index 23d347a..a1f80d0 100644
--- a/migration.h
+++ b/migration.h
@@ -18,14 +18,6 @@
#include "qemu-common.h"
#include "notify.h"
-enum {
- MIG_STATE_ERROR,
- MIG_STATE_SETUP,
- MIG_STATE_CANCELLED,
- MIG_STATE_ACTIVE,
- MIG_STATE_COMPLETED,
-};
-
typedef struct MigrationState MigrationState;
struct MigrationState