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:
Luiz Capitulino 2009-10-16 12:23:45 -03:00 committed by Anthony Liguori
parent 18f5a8bfc7
commit 5f79da0037
3 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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