convert pty chardev to QemuOpts.
[qemu.git] / monitor.h
blobc7d2d0bca0a4f8a1326c4419f883df717d161982
1 #ifndef MONITOR_H
2 #define MONITOR_H
4 #include "qemu-common.h"
5 #include "qemu-char.h"
6 #include "qdict.h"
7 #include "block.h"
9 extern Monitor *cur_mon;
11 /* flags for monitor_init */
12 #define MONITOR_IS_DEFAULT 0x01
13 #define MONITOR_USE_READLINE 0x02
15 void monitor_init(CharDriverState *chr, int flags);
17 int monitor_suspend(Monitor *mon);
18 void monitor_resume(Monitor *mon);
20 void monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs,
21 BlockDriverCompletionFunc *completion_cb,
22 void *opaque);
24 int monitor_get_fd(Monitor *mon, const char *fdname);
26 void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap);
27 void monitor_printf(Monitor *mon, const char *fmt, ...)
28 __attribute__ ((__format__ (__printf__, 2, 3)));
29 void monitor_print_filename(Monitor *mon, const char *filename);
30 void monitor_flush(Monitor *mon);
32 #endif /* !MONITOR_H */