summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-08-28 15:27:14 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-04 09:37:31 -0500
commitf18c16de4a321f1dda01dc7eae8f0aca86900e32 (patch)
tree8cc320c4b06a81cfe04b91a4ce5f1eb9c6589adc /migration.c
parentmonitor: Port handler_1 to use QDict (diff)
downloadqemu-kvm-f18c16de4a321f1dda01dc7eae8f0aca86900e32.tar.gz
qemu-kvm-f18c16de4a321f1dda01dc7eae8f0aca86900e32.tar.bz2
qemu-kvm-f18c16de4a321f1dda01dc7eae8f0aca86900e32.zip
monitor: Port handler_2 to use QDict
This commit ports command handlers that receive two arguments to use the new monitor's dictionary. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/migration.c b/migration.c
index e6bcdb570..7f93e3fcd 100644
--- a/migration.c
+++ b/migration.c
@@ -52,10 +52,12 @@ void qemu_start_incoming_migration(const char *uri)
fprintf(stderr, "unknown migration protocol: %s\n", uri);
}
-void do_migrate(Monitor *mon, int detach, const char *uri)
+void do_migrate(Monitor *mon, const QDict *qdict)
{
MigrationState *s = NULL;
const char *p;
+ int detach = qdict_get_int(qdict, "detach");
+ const char *uri = qdict_get_str(qdict, "uri");
if (strstart(uri, "tcp:", &p))
s = tcp_start_outgoing_migration(p, max_throttle, detach);