Revision f36b4afb monitor.c

b/monitor.c
189 189
static const mon_cmd_t mon_cmds[];
190 190
static const mon_cmd_t info_cmds[];
191 191

  
192
static const mon_cmd_t qmp_cmds[];
193

  
192 194
Monitor *cur_mon;
193 195
Monitor *default_mon;
194 196

  
......
745 747

  
746 748
    cmd_list = qlist_new();
747 749

  
748
    for (cmd = mon_cmds; cmd->name != NULL; cmd++) {
750
    for (cmd = qmp_cmds; cmd->name != NULL; cmd++) {
749 751
        if (monitor_handler_ported(cmd) && !monitor_cmd_user_only(cmd) &&
750 752
            !compare_cmd(cmd->name, "info")) {
751 753
            qlist_append_obj(cmd_list, get_cmd_dict(cmd->name));
......
2635 2637
    },
2636 2638
};
2637 2639

  
2640
static const mon_cmd_t qmp_cmds[] = {
2641
#include "qmp-commands.h"
2642
    { /* NULL */ },
2643
};
2644

  
2638 2645
/*******************************************************************/
2639 2646

  
2640 2647
static const char *pch;
......
3367 3374

  
3368 3375
static const mon_cmd_t *qmp_find_cmd(const char *cmdname)
3369 3376
{
3370
    return search_dispatch_table(mon_cmds, cmdname);
3377
    return search_dispatch_table(qmp_cmds, cmdname);
3371 3378
}
3372 3379

  
3373 3380
static const mon_cmd_t *monitor_parse_command(Monitor *mon,

Also available in: Unified diff