Received: from eggs.gnu.org ([2001:4830:134:3::10]:33595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XD5OE-0007tx-Mf for qemu-devel@nongnu.org; Fri, 01 Aug 2014 01:28:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XD5O2-0003dY-1P for qemu-devel@nongnu.org; Fri, 01 Aug 2014 01:28:26 -0400 Received: from lputeaux-656-01-25-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:59403 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XD5O1-0003c3-Rb for qemu-devel@nongnu.org; Fri, 01 Aug 2014 01:28:13 -0400 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Fri, 1 Aug 2014 07:27:12 +0200 Message-Id: <1406870842-17988-15-git-send-email-benoit.canet@irqsave.net> In-Reply-To: <1406870842-17988-1-git-send-email-benoit.canet@irqsave.net> References: <1406870842-17988-1-git-send-email-benoit.canet@irqsave.net> Subject: [Qemu-devel] [PATCH v1 14/24] monitor: Make commands public before moving them to monitor-system.c List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , Benoit Canet , mreitz@redhat.com, stefanha@redhat.com Signed-off-by: Benoit Canet --- monitor.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/monitor.c b/monitor.c index d2e56f8..560d5e4 100644 --- a/monitor.c +++ b/monitor.c @@ -173,10 +173,10 @@ static QLIST_HEAD(mon_list, Monitor) mon_list; static QLIST_HEAD(mon_fdsets, MonFdset) mon_fdsets; static int mon_refcount; -static mon_cmd_t mon_cmds[]; -static mon_cmd_t info_cmds[]; +mon_cmd_t mon_cmds[]; +mon_cmd_t info_cmds[]; -static const mon_cmd_t qmp_cmds[]; +const mon_cmd_t qmp_cmds[]; Monitor *cur_mon; Monitor *default_mon; @@ -1188,7 +1188,7 @@ int monitor_handle_fd_param2(Monitor *mon, const char *fdname, Error **errp) } /* Please update hmp-commands.hx when adding or changing commands */ -static mon_cmd_t info_cmds[] = { +mon_cmd_t info_cmds[] = { { .name = "version", .args_type = "", @@ -1514,12 +1514,12 @@ static mon_cmd_t info_cmds[] = { }; /* mon_cmds and info_cmds would be sorted at runtime */ -static mon_cmd_t mon_cmds[] = { +mon_cmd_t mon_cmds[] = { #include "hmp-commands.h" { NULL, NULL, }, }; -static const mon_cmd_t qmp_cmds[] = { +const mon_cmd_t qmp_cmds[] = { #include "qmp-commands-old.h" { /* NULL */ }, }; -- 2.0.1