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>
This commit is contained in:
Luiz Capitulino 2009-10-16 12:23:43 -03:00 committed by Anthony Liguori
parent 4a1b0f1cc2
commit 57e09454a4
2 changed files with 3 additions and 2 deletions

View File

@ -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");

View File

@ -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