From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIHgr-0001vL-UQ for qemu-devel@nongnu.org; Fri, 15 Aug 2014 09:37:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XIHgg-00066g-DK for qemu-devel@nongnu.org; Fri, 15 Aug 2014 09:37:09 -0400 Received: from lputeaux-656-01-25-125.w80-12.abo.wanadoo.fr ([80.12.84.125]:42490 helo=paradis.irqsave.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XIHgg-00065q-6J for qemu-devel@nongnu.org; Fri, 15 Aug 2014 09:36:58 -0400 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Fri, 15 Aug 2014 15:35:48 +0200 Message-Id: <1408109759-1100-17-git-send-email-benoit.canet@nodalink.com> In-Reply-To: <1408109759-1100-1-git-send-email-benoit.canet@nodalink.com> References: <1408109759-1100-1-git-send-email-benoit.canet@nodalink.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 16/26] 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, pbonzini@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , stefanha@redhat.com Signed-off-by: Beno=C3=AEt Canet --- monitor.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/monitor.c b/monitor.c index 5017ecf..6288334 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; =20 -static MonitorCommand mon_cmds[]; -static MonitorCommand info_cmds[]; +MonitorCommand mon_cmds[]; +MonitorCommand info_cmds[]; =20 -static const MonitorCommand qmp_cmds[]; +const MonitorCommand qmp_cmds[]; =20 Monitor *cur_mon; Monitor *default_mon; @@ -1189,7 +1189,7 @@ int monitor_handle_fd_param2(Monitor *mon, const ch= ar *fdname, Error **errp) } =20 /* Please update hmp-commands.hx when adding or changing commands */ -static MonitorCommand info_cmds[] =3D { +MonitorCommand info_cmds[] =3D { { .name =3D "version", .args_type =3D "", @@ -1515,12 +1515,12 @@ static MonitorCommand info_cmds[] =3D { }; =20 /* mon_cmds and info_cmds would be sorted at runtime */ -static MonitorCommand mon_cmds[] =3D { +MonitorCommand mon_cmds[] =3D { #include "hmp-commands.h" { NULL, NULL, }, }; =20 -static const MonitorCommand qmp_cmds[] =3D { +const MonitorCommand qmp_cmds[] =3D { #include "qmp-commands-old.h" { /* NULL */ }, }; --=20 2.1.0.rc1