monitor: Convert do_migrate_cancel() to QObject

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:47 -03:00 committed by Anthony Liguori
parent 3a4921047d
commit 911d296346
3 changed files with 4 additions and 3 deletions

View File

@ -82,7 +82,7 @@ void do_migrate(Monitor *mon, const QDict *qdict, QObject **ret_data)
} }
} }
void do_migrate_cancel(Monitor *mon, const QDict *qdict) void do_migrate_cancel(Monitor *mon, const QDict *qdict, QObject **ret_data)
{ {
MigrationState *s = current_migration; MigrationState *s = current_migration;

View File

@ -52,7 +52,7 @@ void qemu_start_incoming_migration(const char *uri);
void do_migrate(Monitor *mon, const QDict *qdict, QObject **ret_data); void do_migrate(Monitor *mon, const QDict *qdict, QObject **ret_data);
void do_migrate_cancel(Monitor *mon, const QDict *qdict); void do_migrate_cancel(Monitor *mon, const QDict *qdict, QObject **ret_data);
void do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data); void do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data);

View File

@ -740,7 +740,8 @@ ETEXI
.args_type = "", .args_type = "",
.params = "", .params = "",
.help = "cancel the current VM migration", .help = "cancel the current VM migration",
.mhandler.cmd = do_migrate_cancel, .user_print = monitor_user_noop,
.mhandler.cmd_new = do_migrate_cancel,
}, },
STEXI STEXI