From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mw0ej-00017K-BM for qemu-devel@nongnu.org; Thu, 08 Oct 2009 17:36:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mw0ed-00010P-Vi for qemu-devel@nongnu.org; Thu, 08 Oct 2009 17:36:12 -0400 Received: from [199.232.76.173] (port=34341 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mw0ed-000103-OB for qemu-devel@nongnu.org; Thu, 08 Oct 2009 17:36:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20690) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mw0ed-0002yb-9E for qemu-devel@nongnu.org; Thu, 08 Oct 2009 17:36:07 -0400 From: Luiz Capitulino Date: Thu, 8 Oct 2009 18:35:40 -0300 Message-Id: <1255037747-3340-4-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1255037747-3340-1-git-send-email-lcapitulino@redhat.com> References: <1255037747-3340-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 03/10] monitor: Convert do_physical_memory_save() to QObject List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com Note that errors are not being converted yet. Signed-off-by: Luiz Capitulino --- monitor.c | 3 ++- qemu-monitor.hx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/monitor.c b/monitor.c index 44ff994..a095971 100644 --- a/monitor.c +++ b/monitor.c @@ -1008,7 +1008,8 @@ static void do_memory_save(Monitor *mon, const QDict *qdict, QObject **ret_data) fclose(f); } -static void do_physical_memory_save(Monitor *mon, const QDict *qdict) +static void do_physical_memory_save(Monitor *mon, const QDict *qdict, + QObject **ret_data) { FILE *f; uint32_t l; diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 70b9125..1c605bd 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -680,7 +680,8 @@ ETEXI .args_type = "val:l,size:i,filename:s", .params = "addr size file", .help = "save to disk physical memory dump starting at 'addr' of size 'size'", - .mhandler.cmd = do_physical_memory_save, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_physical_memory_save, }, STEXI -- 1.6.5.rc2.17.gdbc1b