Revision 6620d3ce
b/monitor.c | ||
---|---|---|
194 | 194 |
return (mon->flags & MONITOR_USE_CONTROL); |
195 | 195 |
} |
196 | 196 |
|
197 |
/* Return non-zero iff we have a current monitor, and it is in QMP mode. */ |
|
198 |
int monitor_cur_is_qmp(void) |
|
199 |
{ |
|
200 |
return cur_mon && monitor_ctrl_mode(cur_mon); |
|
201 |
} |
|
202 |
|
|
197 | 203 |
static void monitor_read_command(Monitor *mon, int show_prompt) |
198 | 204 |
{ |
199 | 205 |
if (!mon->rs) |
b/monitor.h | ||
---|---|---|
31 | 31 |
QEVENT_MAX, |
32 | 32 |
} MonitorEvent; |
33 | 33 |
|
34 |
int monitor_cur_is_qmp(void); |
|
35 |
|
|
34 | 36 |
void monitor_protocol_event(MonitorEvent event, QObject *data); |
35 | 37 |
void monitor_init(CharDriverState *chr, int flags); |
36 | 38 |
|
Also available in: Unified diff