From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mo27m-0006tW-Tj for qemu-devel@nongnu.org; Wed, 16 Sep 2009 17:33:14 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mo27i-0006rQ-MN for qemu-devel@nongnu.org; Wed, 16 Sep 2009 17:33:14 -0400 Received: from [199.232.76.173] (port=58010 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mo27i-0006rI-F6 for qemu-devel@nongnu.org; Wed, 16 Sep 2009 17:33:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61927) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mo27h-0002k3-VW for qemu-devel@nongnu.org; Wed, 16 Sep 2009 17:33:10 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8GLX9Ow001993 for ; Wed, 16 Sep 2009 17:33:09 -0400 Received: from localhost (vpn-12-10.rdu.redhat.com [10.11.12.10]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8GLX7fg001020 for ; Wed, 16 Sep 2009 17:33:08 -0400 From: Luiz Capitulino Date: Wed, 16 Sep 2009 18:32:40 -0300 Message-Id: <1253136760-3614-8-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1253136760-3614-1-git-send-email-lcapitulino@redhat.com> References: <1253136760-3614-1-git-send-email-lcapitulino@redhat.com> Subject: [Qemu-devel] [PATCH 7/7] 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 Signed-off-by: Luiz Capitulino --- monitor.c | 9 ++++++++- qemu-monitor.hx | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/monitor.c b/monitor.c index ef2d8c1..db73642 100644 --- a/monitor.c +++ b/monitor.c @@ -1311,9 +1311,16 @@ static int do_system_reset(Monitor *mon, const QDict *qdict, QObject **ret_data) return 0; } -static void do_system_powerdown(Monitor *mon, const QDict *qdict) +/** + * do_system_powerdown(): Issue a machine powerdown + * + * return always succeed. + */ +static int do_system_powerdown(Monitor *mon, const QDict *qdict, + QObject **ret_data) { qemu_system_powerdown_request(); + return 0; } #if defined(TARGET_I386) diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 5b3f84f..1159686 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -478,7 +478,7 @@ ETEXI .name = "system_powerdown", .args_type = "", .handler = do_system_powerdown, - .user_print = NULL, + .user_print = monitor_print_nothing, .params = "", .help = "send system power down event" }, -- 1.6.5.rc0