Revision 4a7e1190
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(); |
b/qemu-monitor.hx | ||
---|---|---|
1126 | 1126 |
Set the encrypted device @var{device} password to @var{password} |
1127 | 1127 |
ETEXI |
1128 | 1128 |
|
1129 |
{ |
|
1130 |
.name = "qmp_capabilities", |
|
1131 |
.args_type = "", |
|
1132 |
.params = "", |
|
1133 |
.help = "enable QMP capabilities", |
|
1134 |
.user_print = monitor_user_noop, |
|
1135 |
.mhandler.cmd_new = do_qmp_capabilities, |
|
1136 |
}, |
|
1137 |
|
|
1138 |
STEXI |
|
1139 |
@item qmp_capabilities |
|
1140 |
Enable the specified QMP capabilities |
|
1141 |
ETEXI |
|
1142 |
|
|
1129 | 1143 |
STEXI |
1130 | 1144 |
@end table |
1131 | 1145 |
ETEXI |
Also available in: Unified diff