Revision 4a7e1190 monitor.c
b/monitor.c | ||
---|---|---|
122 | 122 |
QObject *id; |
123 | 123 |
int print_enabled; |
124 | 124 |
JSONMessageParser parser; |
125 |
int command_mode; |
|
125 | 126 |
} MonitorControl; |
126 | 127 |
|
127 | 128 |
struct Monitor { |
... | ... | |
412 | 413 |
QDECREF(qmp); |
413 | 414 |
} |
414 | 415 |
|
416 |
static void do_qmp_capabilities(Monitor *mon, const QDict *params, |
|
417 |
QObject **ret_data) |
|
418 |
{ |
|
419 |
/* Will setup QMP capabilities in the future */ |
|
420 |
if (monitor_ctrl_mode(mon)) { |
|
421 |
mon->mc->command_mode = 1; |
|
422 |
} |
|
423 |
} |
|
424 |
|
|
415 | 425 |
static int compare_cmd(const char *name, const char *list) |
416 | 426 |
{ |
417 | 427 |
const char *p, *pstart; |
... | ... | |
4385 | 4395 |
QObject *data; |
4386 | 4396 |
Monitor *mon = opaque; |
4387 | 4397 |
|
4398 |
mon->mc->command_mode = 0; |
|
4388 | 4399 |
json_message_parser_init(&mon->mc->parser, handle_qmp_command); |
4389 | 4400 |
|
4390 | 4401 |
data = get_qmp_greeting(); |
Also available in: Unified diff