monitor: Convert do_migrate() to QObject
Error is still directly printed, as we are only converting regular output. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
18f5a8bfc7
commit
5f79da0037
@ -52,7 +52,7 @@ void qemu_start_incoming_migration(const char *uri)
|
||||
fprintf(stderr, "unknown migration protocol: %s\n", uri);
|
||||
}
|
||||
|
||||
void do_migrate(Monitor *mon, const QDict *qdict)
|
||||
void do_migrate(Monitor *mon, const QDict *qdict, QObject **ret_data)
|
||||
{
|
||||
MigrationState *s = NULL;
|
||||
const char *p;
|
||||
|
@ -50,7 +50,7 @@ struct FdMigrationState
|
||||
|
||||
void qemu_start_incoming_migration(const char *uri);
|
||||
|
||||
void do_migrate(Monitor *mon, const QDict *qdict);
|
||||
void do_migrate(Monitor *mon, const QDict *qdict, QObject **ret_data);
|
||||
|
||||
void do_migrate_cancel(Monitor *mon, const QDict *qdict);
|
||||
|
||||
|
@ -726,7 +726,8 @@ ETEXI
|
||||
.args_type = "detach:-d,uri:s",
|
||||
.params = "[-d] uri",
|
||||
.help = "migrate to URI (using -d to not wait for completion)",
|
||||
.mhandler.cmd = do_migrate,
|
||||
.user_print = monitor_user_noop,
|
||||
.mhandler.cmd_new = do_migrate,
|
||||
},
|
||||
|
||||
STEXI
|
||||
|
Loading…
Reference in New Issue
Block a user