summaryrefslogtreecommitdiffstats
path: root/migration.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2010-05-11 15:46:39 +0200
committerJuan Quintela <quintela@redhat.com>2011-10-20 13:23:52 +0200
commitdc7acc61b67a49ce56f6a7c93692f72a3fe0759f (patch)
treef02164b4c79dd9ed5bfcf9279f1701bba6a24569 /migration.h
parent7be4363a2828021fd486f7f45e792aecaf909454 (diff)
downloadhqemu-dc7acc61b67a49ce56f6a7c93692f72a3fe0759f.zip
hqemu-dc7acc61b67a49ce56f6a7c93692f72a3fe0759f.tar.gz
migration: Use FdMigrationState instead of MigrationState when possible
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration.h')
-rw-r--r--migration.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/migration.h b/migration.h
index 58354c7..b10bb6e 100644
--- a/migration.h
+++ b/migration.h
@@ -25,18 +25,18 @@
typedef struct MigrationState MigrationState;
+typedef struct FdMigrationState FdMigrationState;
+
struct MigrationState
{
/* FIXME: add more accessors to print migration info */
- void (*cancel)(MigrationState *s);
- int (*get_status)(MigrationState *s);
- void (*release)(MigrationState *s);
+ void (*cancel)(FdMigrationState *s);
+ int (*get_status)(FdMigrationState *s);
+ void (*release)(FdMigrationState *s);
int blk;
int shared;
};
-typedef struct FdMigrationState FdMigrationState;
-
struct FdMigrationState
{
MigrationState mig_state;
@@ -120,11 +120,11 @@ void migrate_fd_connect(FdMigrationState *s);
void migrate_fd_put_ready(void *opaque);
-int migrate_fd_get_status(MigrationState *mig_state);
+int migrate_fd_get_status(FdMigrationState *mig_state);
-void migrate_fd_cancel(MigrationState *mig_state);
+void migrate_fd_cancel(FdMigrationState *mig_state);
-void migrate_fd_release(MigrationState *mig_state);
+void migrate_fd_release(FdMigrationState *mig_state);
void migrate_fd_wait_for_unfreeze(void *opaque);
OpenPOWER on IntegriCloud