Patchwork [4/9] monitor: Convert do_migrate_set_speed() to QObject

login
register
mail settings
Submitter Luiz Capitulino
Date Oct. 16, 2009, 3:23 p.m.
Message ID <1255706631-3742-5-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/36238/
State New
Headers show

Comments

Luiz Capitulino - Oct. 16, 2009, 3:23 p.m.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 migration.c     |    2 +-
 migration.h     |    2 +-
 qemu-monitor.hx |    3 ++-
 3 files changed, 4 insertions(+), 3 deletions(-)

Patch

diff --git a/migration.c b/migration.c
index fb37d1b..9a40b37 100644
--- a/migration.c
+++ b/migration.c
@@ -90,7 +90,7 @@  void do_migrate_cancel(Monitor *mon, const QDict *qdict)
         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;
     char *ptr;
diff --git a/migration.h b/migration.h
index 17ca9ff..40bd610 100644
--- a/migration.h
+++ b/migration.h
@@ -54,7 +54,7 @@  void do_migrate(Monitor *mon, const QDict *qdict, QObject **ret_data);
 
 void do_migrate_cancel(Monitor *mon, const QDict *qdict);
 
-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 8e7bfd4..af1bae5 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -753,7 +753,8 @@  ETEXI
         .args_type  = "value:s",
         .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