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