From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mo27l-0006sE-AY for qemu-devel@nongnu.org; Wed, 16 Sep 2009 17:33:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mo27g-0006qa-Et for qemu-devel@nongnu.org; Wed, 16 Sep 2009 17:33:12 -0400 Received: from [199.232.76.173] (port=58009 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mo27g-0006qD-4F for qemu-devel@nongnu.org; Wed, 16 Sep 2009 17:33:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37240) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mo27f-0002jl-Lc for qemu-devel@nongnu.org; Wed, 16 Sep 2009 17:33:07 -0400 Received: from int-mx04.intmail.prod.int.phx2.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.17]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8GLX6fH024634 for ; Wed, 16 Sep 2009 17:33:06 -0400 Received: from localhost (vpn-12-10.rdu.redhat.com [10.11.12.10]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8GLX4O1029581 for ; Wed, 16 Sep 2009 17:33:05 -0400 From: Luiz Capitulino Date: Wed, 16 Sep 2009 18:32:39 -0300 Message-Id: <1253136760-3614-7-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 6/7] monitor: Convert do_system_reset() 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 | 8 +++++++- qemu-monitor.hx | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/monitor.c b/monitor.c index 9ef9108..ef2d8c1 100644 --- a/monitor.c +++ b/monitor.c @@ -1300,9 +1300,15 @@ static void do_boot_set(Monitor *mon, const QDict *qdict) } } -static void do_system_reset(Monitor *mon, const QDict *qdict) +/** + * do_system_reset(): Issue a machine reset + * + * return always succeed. + */ +static int do_system_reset(Monitor *mon, const QDict *qdict, QObject **ret_data) { qemu_system_reset_request(); + return 0; } static void do_system_powerdown(Monitor *mon, const QDict *qdict) diff --git a/qemu-monitor.hx b/qemu-monitor.hx index f6c9911..5b3f84f 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -464,7 +464,7 @@ ETEXI .name = "system_reset", .args_type = "", .handler = do_system_reset, - .user_print = NULL, + .user_print = monitor_print_nothing, .params = "", .help = "reset the system" }, -- 1.6.5.rc0