diff options
author | 2018-02-08 18:31:15 +0800 | |
---|---|---|
committer | 2018-02-14 10:37:09 +0000 | |
commit | 3e0c8050ebba3f55dc2d92b3790a3cfb80786d07 (patch) | |
tree | a4f08216d9d5236cfec6d7d3a2071f328004409d /migration/migration.h | |
parent | migration: allow send_rq to fail (diff) | |
download | qemu-3e0c8050ebba3f55dc2d92b3790a3cfb80786d07.tar.xz qemu-3e0c8050ebba3f55dc2d92b3790a3cfb80786d07.zip |
migration: pass MigrationState to migrate_init()
Let the callers take the object, then pass it to migrate_init().
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180208103132.28452-12-peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'migration/migration.h')
-rw-r--r-- | migration/migration.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration/migration.h b/migration/migration.h index f515b8994f..82cf926b17 100644 --- a/migration/migration.h +++ b/migration/migration.h @@ -193,7 +193,7 @@ void migrate_fd_error(MigrationState *s, const Error *error); void migrate_fd_connect(MigrationState *s, Error *error_in); -MigrationState *migrate_init(void); +void migrate_init(MigrationState *s); bool migration_is_blocked(Error **errp); /* True if outgoing migration has entered postcopy phase */ bool migration_in_postcopy(void); |