root / monitor.h @ 543fc7b2
History | View | Annotate | Download (1.2 kB)
1 | 376253ec | aliguori | #ifndef MONITOR_H
|
---|---|---|---|
2 | 376253ec | aliguori | #define MONITOR_H
|
3 | 376253ec | aliguori | |
4 | 376253ec | aliguori | #include "qemu-common.h" |
5 | 376253ec | aliguori | #include "qemu-char.h" |
6 | cdb0def3 | Luiz Capitulino | #include "qdict.h" |
7 | 376253ec | aliguori | #include "block.h" |
8 | 376253ec | aliguori | |
9 | 376253ec | aliguori | extern Monitor *cur_mon;
|
10 | 376253ec | aliguori | |
11 | 731b0364 | aliguori | /* flags for monitor_init */
|
12 | 731b0364 | aliguori | #define MONITOR_IS_DEFAULT 0x01 |
13 | cde76ee1 | aliguori | #define MONITOR_USE_READLINE 0x02 |
14 | 418173c7 | Luiz Capitulino | #define MONITOR_USE_CONTROL 0x04 |
15 | 731b0364 | aliguori | |
16 | 0d1ea871 | Luiz Capitulino | /* QMP events */
|
17 | 0d1ea871 | Luiz Capitulino | typedef enum MonitorEvent { |
18 | b1a15e7e | Luiz Capitulino | EVENT_DEBUG, |
19 | b1a15e7e | Luiz Capitulino | EVENT_SHUTDOWN, |
20 | b1a15e7e | Luiz Capitulino | EVENT_RESET, |
21 | b1a15e7e | Luiz Capitulino | EVENT_POWERDOWN, |
22 | b1a15e7e | Luiz Capitulino | EVENT_STOP, |
23 | 0d1ea871 | Luiz Capitulino | EVENT_MAX, |
24 | 0d1ea871 | Luiz Capitulino | } MonitorEvent; |
25 | 0d1ea871 | Luiz Capitulino | |
26 | 0d1ea871 | Luiz Capitulino | void monitor_protocol_event(MonitorEvent event, QObject *data);
|
27 | adcb181a | Luiz Capitulino | const char *monitor_cmdline_parse(const char *cmdline, int *flags); |
28 | 731b0364 | aliguori | void monitor_init(CharDriverState *chr, int flags); |
29 | 376253ec | aliguori | |
30 | cde76ee1 | aliguori | int monitor_suspend(Monitor *mon);
|
31 | 376253ec | aliguori | void monitor_resume(Monitor *mon);
|
32 | 376253ec | aliguori | |
33 | 376253ec | aliguori | void monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs,
|
34 | 376253ec | aliguori | BlockDriverCompletionFunc *completion_cb, |
35 | 376253ec | aliguori | void *opaque);
|
36 | 376253ec | aliguori | |
37 | 7768e04c | Mark McLoughlin | int monitor_get_fd(Monitor *mon, const char *fdname); |
38 | 7768e04c | Mark McLoughlin | |
39 | 376253ec | aliguori | void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap); |
40 | 376253ec | aliguori | void monitor_printf(Monitor *mon, const char *fmt, ...) |
41 | 376253ec | aliguori | __attribute__ ((__format__ (__printf__, 2, 3))); |
42 | 376253ec | aliguori | void monitor_print_filename(Monitor *mon, const char *filename); |
43 | 376253ec | aliguori | void monitor_flush(Monitor *mon);
|
44 | 376253ec | aliguori | |
45 | 376253ec | aliguori | #endif /* !MONITOR_H */ |