diff options
author | Markus Armbruster <armbru@redhat.com> | 2010-01-25 14:23:05 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-02-03 12:36:26 -0600 |
commit | 5fd9083cd8753be3a0bb9d772efdf1d7aa71c59c (patch) | |
tree | 88629714822e0defa5d09c92943daa86a57d567f | |
parent | 5667c493c430256c99002b719383f0e911cb53a8 (diff) |
monitor: convert do_migrate_set_speed() to QObject
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | migration.c | 2 | ||||
-rw-r--r-- | migration.h | 2 | ||||
-rw-r--r-- | qemu-monitor.hx | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/migration.c b/migration.c index 6abdc65149..cd8d9e64bf 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 cbd456b901..3ac208bf5e 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 b30301e7d5..6d47d49f13 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 |