summaryrefslogtreecommitdiffstats
path: root/migration.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-10-25 13:50:11 +0200
committerGerd Hoffmann <kraxel@redhat.com>2011-10-25 13:59:25 +0200
commitafe2df69cf9305b195d96afc545d3fefc0fb5f5d (patch)
tree3e454a6006ca4ecfd6eda5129fe8d75e6cfe60bf /migration.h
parent952e849c150b4f1b89f8728cba00f925c1d6e75b (diff)
downloadhqemu-afe2df69cf9305b195d96afc545d3fefc0fb5f5d.zip
hqemu-afe2df69cf9305b195d96afc545d3fefc0fb5f5d.tar.gz
migration: add status query functions
Add migration_is_active and migration_has_failed functions to query migration state. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'migration.h')
-rw-r--r--migration.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/migration.h b/migration.h
index a1f80d0..1b8ee58 100644
--- a/migration.h
+++ b/migration.h
@@ -76,7 +76,9 @@ void migrate_fd_connect(MigrationState *s);
void add_migration_state_change_notifier(Notifier *notify);
void remove_migration_state_change_notifier(Notifier *notify);
+bool migration_is_active(MigrationState *);
bool migration_has_finished(MigrationState *);
+bool migration_has_failed(MigrationState *);
uint64_t ram_bytes_remaining(void);
uint64_t ram_bytes_transferred(void);
OpenPOWER on IntegriCloud