From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvKNn-0001hO-LW for qemu-devel@nongnu.org; Tue, 06 Oct 2009 20:27:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvKNi-0001cb-0s for qemu-devel@nongnu.org; Tue, 06 Oct 2009 20:27:54 -0400 Received: from [199.232.76.173] (port=45750 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvKNh-0001c1-8q for qemu-devel@nongnu.org; Tue, 06 Oct 2009 20:27:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50827) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvKNg-00075Q-RG for qemu-devel@nongnu.org; Tue, 06 Oct 2009 20:27:49 -0400 From: Luiz Capitulino Date: Tue, 6 Oct 2009 21:27:07 -0300 Message-Id: <1254875232-25012-11-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1254875232-25012-1-git-send-email-lcapitulino@redhat.com> References: <1254875232-25012-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 10/15] monitor: Convert do_system_powerdown() 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, avi@redhat.com Signed-off-by: Luiz Capitulino --- monitor.c | 6 +++++- qemu-monitor.hx | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/monitor.c b/monitor.c index d1396c3..198f0fc 100644 --- a/monitor.c +++ b/monitor.c @@ -1302,7 +1302,11 @@ static void do_system_reset(Monitor *mon, const QDict *qdict, qemu_system_reset_request(); } -static void do_system_powerdown(Monitor *mon, const QDict *qdict) +/** + * do_system_powerdown(): Issue a machine powerdown + */ +static void do_system_powerdown(Monitor *mon, const QDict *qdict, + QObject **ret_data) { qemu_system_powerdown_request(); } diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 4b18680..eef0c8e 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -500,7 +500,7 @@ ETEXI .name = "system_powerdown", .args_type = "", .handler = do_system_powerdown, - .user_print = NULL, + .user_print = monitor_user_noop, .params = "", .help = "send system power down event" }, -- 1.6.5.rc2.17.gdbc1b