From patchwork Fri Nov 27 00:58:55 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luiz Capitulino X-Patchwork-Id: 39596 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 EEF6BB7BCB for ; Fri, 27 Nov 2009 12:08:24 +1100 (EST) Received: from localhost ([127.0.0.1]:42946 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDpJu-0005zH-4O for incoming@patchwork.ozlabs.org; Thu, 26 Nov 2009 20:08:22 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDpBS-0001da-HT for qemu-devel@nongnu.org; Thu, 26 Nov 2009 19:59:38 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDpBM-0001Z2-LH for qemu-devel@nongnu.org; Thu, 26 Nov 2009 19:59:37 -0500 Received: from [199.232.76.173] (port=48289 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDpBL-0001Xq-Ta for qemu-devel@nongnu.org; Thu, 26 Nov 2009 19:59:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61318) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDpBL-0004PF-Bi for qemu-devel@nongnu.org; Thu, 26 Nov 2009 19:59:31 -0500 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 nAR0xUcl024347 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 26 Nov 2009 19:59:30 -0500 Received: from localhost (vpn-10-232.rdu.redhat.com [10.11.10.232]) by int-mx04.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nAR0xSig024938; Thu, 26 Nov 2009 19:59:29 -0500 From: Luiz Capitulino To: qemu-devel@nongnu.org Date: Thu, 26 Nov 2009 22:58:55 -0200 Message-Id: <1259283550-3597-6-git-send-email-lcapitulino@redhat.com> In-Reply-To: <1259283550-3597-1-git-send-email-lcapitulino@redhat.com> References: <1259283550-3597-1-git-send-email-lcapitulino@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.17 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: aliguori@us.ibm.com, avi@redhat.com, armbru@redhat.com Subject: [Qemu-devel] [PATCH 05/20] monitor: Rename monitor_handle_command() 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 As this series will add a new kind of Monitor command, it's better to rename monitor_handle_command() to what it really is: handle_user_command(). This will avoid confusion. Signed-off-by: Luiz Capitulino --- monitor.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/monitor.c b/monitor.c index 6c2c1f1..4c402e4 100644 --- a/monitor.c +++ b/monitor.c @@ -3292,7 +3292,7 @@ static void monitor_call_handler(Monitor *mon, const mon_cmd_t *cmd, qobject_decref(data); } -static void monitor_handle_command(Monitor *mon, const char *cmdline) +static void handle_user_command(Monitor *mon, const char *cmdline) { QDict *qdict; const mon_cmd_t *cmd; @@ -3556,7 +3556,7 @@ static void monitor_read(void *opaque, const uint8_t *buf, int size) if (size == 0 || buf[size - 1] != 0) monitor_printf(cur_mon, "corrupted command\n"); else - monitor_handle_command(cur_mon, (char *)buf); + handle_user_command(cur_mon, (char *)buf); } cur_mon = old_mon; @@ -3565,7 +3565,7 @@ static void monitor_read(void *opaque, const uint8_t *buf, int size) static void monitor_command_cb(Monitor *mon, const char *cmdline, void *opaque) { monitor_suspend(mon); - monitor_handle_command(mon, cmdline); + handle_user_command(mon, cmdline); monitor_resume(mon); }