diff mbox

[v1,14/24] monitor: Make commands public before moving them to monitor-system.c

Message ID 1406870842-17988-15-git-send-email-benoit.canet@irqsave.net
State New
Headers show

Commit Message

BenoƮt Canet Aug. 1, 2014, 5:27 a.m. UTC
Signed-off-by: Benoit Canet <benoit@irqsave.net>
---
 monitor.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox

Patch

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 */ },
 };