migration: export migrate_get_current()
authorJuan Quintela <quintela@redhat.com>
Mon, 13 Aug 2012 07:42:49 +0000 (09:42 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 17 Oct 2012 16:34:58 +0000 (18:34 +0200)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
migration.c
migration.h

index 1375e7e18417b4e738376f05017b6fa8b7f954fe..fc615c809670914741441cee4793da46ad38eebd 100644 (file)
@@ -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,
index 346291742537d1264289001329f48831999de15c..dabc333f5b08215d60056ad8cdc3cd6c16f54823 100644 (file)
@@ -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);