blob: f6a43c01898e8bbf9a0008ae9c6224b66f82f0a6 [file] [log] [blame]
aliguori376253e2009-03-05 23:01:23 +00001#ifndef MONITOR_H
2#define MONITOR_H
3
4#include "qemu-common.h"
5#include "qemu-char.h"
6#include "block.h"
7
8extern Monitor *cur_mon;
9
aliguori731b0362009-03-05 23:01:42 +000010/* flags for monitor_init */
11#define MONITOR_IS_DEFAULT 0x01
aliguoricde76ee2009-03-05 23:01:51 +000012#define MONITOR_USE_READLINE 0x02
aliguori731b0362009-03-05 23:01:42 +000013
14void monitor_init(CharDriverState *chr, int flags);
aliguori376253e2009-03-05 23:01:23 +000015
aliguoricde76ee2009-03-05 23:01:51 +000016int monitor_suspend(Monitor *mon);
aliguori376253e2009-03-05 23:01:23 +000017void monitor_resume(Monitor *mon);
18
19void monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs,
20 BlockDriverCompletionFunc *completion_cb,
21 void *opaque);
22
Mark McLoughlin7768e042009-07-22 09:11:41 +010023int monitor_get_fd(Monitor *mon, const char *fdname);
24
aliguori376253e2009-03-05 23:01:23 +000025void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap);
26void monitor_printf(Monitor *mon, const char *fmt, ...)
27 __attribute__ ((__format__ (__printf__, 2, 3)));
28void monitor_print_filename(Monitor *mon, const char *filename);
29void monitor_flush(Monitor *mon);
30
31#endif /* !MONITOR_H */