diff mbox

[v2,16/26] monitor: Make commands public before moving them to monitor-system.c

Message ID 1408109759-1100-17-git-send-email-benoit.canet@nodalink.com
State New
Headers show

Commit Message

Benoît Canet Aug. 15, 2014, 1:35 p.m. UTC
Signed-off-by: Benoît Canet <benoit.canet@nodalink.com>
---
 monitor.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox

Patch

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;
 
-static MonitorCommand mon_cmds[];
-static MonitorCommand info_cmds[];
+MonitorCommand mon_cmds[];
+MonitorCommand info_cmds[];
 
-static const MonitorCommand qmp_cmds[];
+const MonitorCommand qmp_cmds[];
 
 Monitor *cur_mon;
 Monitor *default_mon;
@@ -1189,7 +1189,7 @@  int monitor_handle_fd_param2(Monitor *mon, const char *fdname, Error **errp)
 }
 
 /* Please update hmp-commands.hx when adding or changing commands */
-static MonitorCommand info_cmds[] = {
+MonitorCommand info_cmds[] = {
     {
         .name       = "version",
         .args_type  = "",
@@ -1515,12 +1515,12 @@  static MonitorCommand info_cmds[] = {
 };
 
 /* mon_cmds and info_cmds would be sorted at runtime */
-static MonitorCommand mon_cmds[] = {
+MonitorCommand mon_cmds[] = {
 #include "hmp-commands.h"
     { NULL, NULL, },
 };
 
-static const MonitorCommand qmp_cmds[] = {
+const MonitorCommand qmp_cmds[] = {
 #include "qmp-commands-old.h"
     { /* NULL */ },
 };