aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-10-16 12:23:43 -0300
committerAnthony Liguori <aliguori@us.ibm.com>2009-10-27 12:28:57 -0500
commit57e09454a4b1ede7040600346f5c6d9c8ddcd9c1 (patch)
tree56141ce8663f78dd815531fb44350015c8ca76f8
parent4a1b0f1cc20cfe6e6529a674a5cb09a2bfa3a710 (diff)
monitor: Convert do_memory_save() to QObject
Note that errors are not being converted yet. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--monitor.c2
-rw-r--r--qemu-monitor.hx3
2 files changed, 3 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 2566f4a1b4..c852ffafdd 100644
--- a/monitor.c
+++ b/monitor.c
@@ -977,7 +977,7 @@ static void do_print(Monitor *mon, const QDict *qdict)
monitor_printf(mon, "\n");
}
-static void do_memory_save(Monitor *mon, const QDict *qdict)
+static void do_memory_save(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
FILE *f;
uint32_t size = qdict_get_int(qdict, "size");
diff --git a/qemu-monitor.hx b/qemu-monitor.hx
index 29999c6e38..70b9125cfe 100644
--- a/qemu-monitor.hx
+++ b/qemu-monitor.hx
@@ -666,7 +666,8 @@ ETEXI
.args_type = "val:l,size:i,filename:s",
.params = "addr size file",
.help = "save to disk virtual memory dump starting at 'addr' of size 'size'",
- .mhandler.cmd = do_memory_save,
+ .user_print = monitor_user_noop,
+ .mhandler.cmd_new = do_memory_save,
},
STEXI