From: Markus Armbruster Date: Mon, 25 Jan 2010 13:23:05 +0000 (+0100) Subject: monitor: convert do_migrate_set_speed() to QObject X-Git-Tag: TizenStudio_2.0_p2.3~5814 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1240f608bb420cb14f9f16ad243014d1e8557b61;p=sdk%2Femulator%2Fqemu.git monitor: convert do_migrate_set_speed() to QObject Signed-off-by: Markus Armbruster Signed-off-by: Anthony Liguori --- diff --git a/migration.c b/migration.c index 6abdc65..cd8d9e6 100644 --- a/migration.c +++ b/migration.c @@ -106,7 +106,7 @@ void do_migrate_cancel(Monitor *mon, const QDict *qdict, QObject **ret_data) s->cancel(s); } -void do_migrate_set_speed(Monitor *mon, const QDict *qdict) +void do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data) { double d; FdMigrationState *s; diff --git a/migration.h b/migration.h index cbd456b..3ac208b 100644 --- a/migration.h +++ b/migration.h @@ -56,7 +56,7 @@ void do_migrate(Monitor *mon, const QDict *qdict, QObject **ret_data); void do_migrate_cancel(Monitor *mon, const QDict *qdict, QObject **ret_data); -void do_migrate_set_speed(Monitor *mon, const QDict *qdict); +void do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data); uint64_t migrate_max_downtime(void); diff --git a/qemu-monitor.hx b/qemu-monitor.hx index b30301e..6d47d49 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -764,7 +764,8 @@ ETEXI .args_type = "value:b", .params = "value", .help = "set maximum speed (in bytes) for migrations", - .mhandler.cmd = do_migrate_set_speed, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_migrate_set_speed, }, STEXI