aliguori | 376253e | 2009-03-05 23:01:23 +0000 | [diff] [blame] | 1 | #ifndef MONITOR_H |
| 2 | #define MONITOR_H |
| 3 | |
| 4 | #include "qemu-common.h" |
| 5 | #include "qemu-char.h" |
Luiz Capitulino | cdb0def | 2009-08-28 15:27:11 -0300 | [diff] [blame] | 6 | #include "qdict.h" |
aliguori | 376253e | 2009-03-05 23:01:23 +0000 | [diff] [blame] | 7 | #include "block.h" |
| 8 | |
| 9 | extern Monitor *cur_mon; |
| 10 | |
aliguori | 731b036 | 2009-03-05 23:01:42 +0000 | [diff] [blame] | 11 | /* flags for monitor_init */ |
| 12 | #define MONITOR_IS_DEFAULT 0x01 |
aliguori | cde76ee | 2009-03-05 23:01:51 +0000 | [diff] [blame] | 13 | #define MONITOR_USE_READLINE 0x02 |
Luiz Capitulino | 418173c | 2009-11-26 22:58:51 -0200 | [diff] [blame^] | 14 | #define MONITOR_USE_CONTROL 0x04 |
aliguori | 731b036 | 2009-03-05 23:01:42 +0000 | [diff] [blame] | 15 | |
| 16 | void monitor_init(CharDriverState *chr, int flags); |
aliguori | 376253e | 2009-03-05 23:01:23 +0000 | [diff] [blame] | 17 | |
aliguori | cde76ee | 2009-03-05 23:01:51 +0000 | [diff] [blame] | 18 | int monitor_suspend(Monitor *mon); |
aliguori | 376253e | 2009-03-05 23:01:23 +0000 | [diff] [blame] | 19 | void monitor_resume(Monitor *mon); |
| 20 | |
| 21 | void monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs, |
| 22 | BlockDriverCompletionFunc *completion_cb, |
| 23 | void *opaque); |
| 24 | |
Mark McLoughlin | 7768e04 | 2009-07-22 09:11:41 +0100 | [diff] [blame] | 25 | int monitor_get_fd(Monitor *mon, const char *fdname); |
| 26 | |
aliguori | 376253e | 2009-03-05 23:01:23 +0000 | [diff] [blame] | 27 | void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap); |
| 28 | void monitor_printf(Monitor *mon, const char *fmt, ...) |
| 29 | __attribute__ ((__format__ (__printf__, 2, 3))); |
| 30 | void monitor_print_filename(Monitor *mon, const char *filename); |
| 31 | void monitor_flush(Monitor *mon); |
| 32 | |
| 33 | #endif /* !MONITOR_H */ |