]> git.proxmox.com Git - qemu.git/blob - monitor.h
monitor: Command-line flag to enable control mode
[qemu.git] / monitor.h
1 #ifndef MONITOR_H
2 #define MONITOR_H
3
4 #include "qemu-common.h"
5 #include "qemu-char.h"
6 #include "qdict.h"
7 #include "block.h"
8
9 extern Monitor *cur_mon;
10
11 /* flags for monitor_init */
12 #define MONITOR_IS_DEFAULT 0x01
13 #define MONITOR_USE_READLINE 0x02
14 #define MONITOR_USE_CONTROL 0x04
15
16 const char *monitor_cmdline_parse(const char *cmdline, int *flags);
17 void monitor_init(CharDriverState *chr, int flags);
18
19 int monitor_suspend(Monitor *mon);
20 void monitor_resume(Monitor *mon);
21
22 void monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs,
23 BlockDriverCompletionFunc *completion_cb,
24 void *opaque);
25
26 int monitor_get_fd(Monitor *mon, const char *fdname);
27
28 void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap);
29 void monitor_printf(Monitor *mon, const char *fmt, ...)
30 __attribute__ ((__format__ (__printf__, 2, 3)));
31 void monitor_print_filename(Monitor *mon, const char *filename);
32 void monitor_flush(Monitor *mon);
33
34 #endif /* !MONITOR_H */