aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-08-13 09:42:49 +0200
committerJuan Quintela <quintela@redhat.com>2012-10-17 18:34:58 +0200
commit859bc7569a2d244ee6183a99b71186462049ca86 (patch)
tree23b2d78d0ce96b6cd16eff0ee34707e49ce0b641
parentc00012f68b736c0ad9d0ff245373c7005ea0721a (diff)
migration: export migrate_get_current()
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--migration.c2
-rw-r--r--migration.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/migration.c b/migration.c
index 1375e7e184..fc615c8096 100644
--- a/migration.c
+++ b/migration.c
@@ -53,7 +53,7 @@ static NotifierList migration_state_notifiers =
migrations at once. For now we don't need to add
dynamic creation of migration */
-static MigrationState *migrate_get_current(void)
+MigrationState *migrate_get_current(void)
{
static MigrationState current_migration = {
.state = MIG_STATE_SETUP,
diff --git a/migration.h b/migration.h
index 3462917425..dabc333f5b 100644
--- a/migration.h
+++ b/migration.h
@@ -81,6 +81,7 @@ void remove_migration_state_change_notifier(Notifier *notify);
bool migration_is_active(MigrationState *);
bool migration_has_finished(MigrationState *);
bool migration_has_failed(MigrationState *);
+MigrationState *migrate_get_current(void);
uint64_t ram_bytes_remaining(void);
uint64_t ram_bytes_transferred(void);