From patchwork Wed Oct 7 16:32:07 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 35325 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id D8594B7B7D for ; Thu, 8 Oct 2009 03:52:18 +1100 (EST) Received: from localhost ([127.0.0.1]:46649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvZkN-0006B2-0r for incoming@patchwork.ozlabs.org; Wed, 07 Oct 2009 12:52:15 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MvZRk-00074u-9U for qemu-devel@nongnu.org; Wed, 07 Oct 2009 12:33:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MvZRe-00071x-L6 for qemu-devel@nongnu.org; Wed, 07 Oct 2009 12:32:59 -0400 Received: from [199.232.76.173] (port=48043 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MvZRe-00071j-Cf for qemu-devel@nongnu.org; Wed, 07 Oct 2009 12:32:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:22404) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MvZRd-0003vx-Rk for qemu-devel@nongnu.org; Wed, 07 Oct 2009 12:32:54 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n97GWrHK030619; Wed, 7 Oct 2009 12:32:53 -0400 Received: from localhost (vpn-12-190.rdu.redhat.com [10.11.12.190]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n97GWpSG017350; Wed, 7 Oct 2009 12:32:52 -0400 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Wed, 7 Oct 2009 13:32:07 -0300 Message-Id: <1254933135-21888-11-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1254933135-21888-1-git-send-email-lcapitulino@redhat.com> References: <1254933135-21888-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: aliguori@us.ibm.com, avi@redhat.com Subject: [Qemu-devel] [PATCH 10/18] monitor: Convert do_quit() do QObject X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Luiz Capitulino --- monitor.c | 5 ++++- qemu-monitor.hx | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/monitor.c b/monitor.c index cc1b501..4ba415c 100644 --- a/monitor.c +++ b/monitor.c @@ -457,7 +457,10 @@ static void do_info_cpu_stats(Monitor *mon) } #endif -static void do_quit(Monitor *mon, const QDict *qdict) +/** + * do_quit(): Quit QEMU execution + */ +static void do_quit(Monitor *mon, const QDict *qdict, QObject **ret_data) { exit(0); } diff --git a/qemu-monitor.hx b/qemu-monitor.hx index c37b0cb..51c7673 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -119,7 +119,8 @@ ETEXI .args_type = "", .params = "", .help = "quit the emulator", - .mhandler.cmd = do_quit, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_quit, }, STEXI