From patchwork Thu Oct 1 15:50:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 34741 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 9488EB7BC2 for ; Fri, 2 Oct 2009 02:09:38 +1000 (EST) Received: from localhost ([127.0.0.1]:53584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtODn-000051-Su for incoming@patchwork.ozlabs.org; Thu, 01 Oct 2009 12:09:35 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtNwL-0007ZK-0F for qemu-devel@nongnu.org; Thu, 01 Oct 2009 11:51:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtNwF-0007PU-2n for qemu-devel@nongnu.org; Thu, 01 Oct 2009 11:51:31 -0400 Received: from [199.232.76.173] (port=54691 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtNwE-0007Ow-PF for qemu-devel@nongnu.org; Thu, 01 Oct 2009 11:51:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1398) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtNwE-0003di-Ar for qemu-devel@nongnu.org; Thu, 01 Oct 2009 11:51:26 -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 n91FpPg0023019; Thu, 1 Oct 2009 11:51:25 -0400 Received: from localhost (vpn-12-143.rdu.redhat.com [10.11.12.143]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n91FpN7f010031; Thu, 1 Oct 2009 11:51:24 -0400 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Thu, 1 Oct 2009 12:50:38 -0300 Message-Id: <1254412245-10452-8-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1254412245-10452-1-git-send-email-lcapitulino@redhat.com> References: <1254412245-10452-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 07/14] 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 | 6 +++++- qemu-monitor.hx | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/monitor.c b/monitor.c index fecdc63..411c843 100644 --- a/monitor.c +++ b/monitor.c @@ -492,7 +492,11 @@ 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, + MonitorError *error) { exit(0); } diff --git a/qemu-monitor.hx b/qemu-monitor.hx index b9c33e5..7d5af9f 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -123,8 +123,8 @@ ETEXI .name = "q|quit", .args_type = "", .handler = do_quit, - .user_print = NULL, - .user_error = NULL, + .user_print = monitor_user_noop, + .user_error = monitor_error_noop, .params = "", .help = "quit the emulator" },