aboutsummaryrefslogtreecommitdiff
path: root/migration.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2010-05-11 23:01:53 +0200
committerJuan Quintela <quintela@redhat.com>2011-10-20 13:23:53 +0200
commitd5934dde1cc47306800558a8c8619dc6a976c11c (patch)
tree4f359fdb50354e1ba2c0dd103339c7fd5ef2e024 /migration.h
parent07af4452919fddc6dca6462828b457aad62f6387 (diff)
migration: Introduce MIG_STATE_SETUP
Use MIG_STATE_ACTIVE only when migration has really started. Use this new state to setup migration parameters. Change defines for an anonymous struct. Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration.h')
-rw-r--r--migration.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/migration.h b/migration.h
index 14c3ebccda..fed1cf1333 100644
--- a/migration.h
+++ b/migration.h
@@ -18,10 +18,13 @@
#include "qemu-common.h"
#include "notify.h"
-#define MIG_STATE_ERROR -1
-#define MIG_STATE_COMPLETED 0
-#define MIG_STATE_CANCELLED 1
-#define MIG_STATE_ACTIVE 2
+enum {
+ MIG_STATE_ERROR,
+ MIG_STATE_SETUP,
+ MIG_STATE_CANCELLED,
+ MIG_STATE_ACTIVE,
+ MIG_STATE_COMPLETED,
+};
typedef struct MigrationState MigrationState;