Annotation of qemu/monitor.h, revision 1.1.1.2
1.1 root 1: #ifndef MONITOR_H
2: #define MONITOR_H
3:
4: #include "qemu-common.h"
5: #include "qemu-char.h"
1.1.1.2 ! root 6: #include "qdict.h"
1.1 root 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
1.1.1.2 ! root 14: #define MONITOR_USE_CONTROL 0x04
1.1 root 15:
1.1.1.2 ! root 16: /* QMP events */
! 17: typedef enum MonitorEvent {
! 18: QEVENT_DEBUG,
! 19: QEVENT_SHUTDOWN,
! 20: QEVENT_RESET,
! 21: QEVENT_POWERDOWN,
! 22: QEVENT_STOP,
! 23: QEVENT_MAX,
! 24: } MonitorEvent;
! 25:
! 26: void monitor_protocol_event(MonitorEvent event, QObject *data);
1.1 root 27: void monitor_init(CharDriverState *chr, int flags);
28:
29: int monitor_suspend(Monitor *mon);
30: void monitor_resume(Monitor *mon);
31:
32: void monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs,
33: BlockDriverCompletionFunc *completion_cb,
34: void *opaque);
35:
36: int monitor_get_fd(Monitor *mon, const char *fdname);
37:
38: void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap);
39: void monitor_printf(Monitor *mon, const char *fmt, ...)
40: __attribute__ ((__format__ (__printf__, 2, 3)));
41: void monitor_print_filename(Monitor *mon, const char *filename);
42: void monitor_flush(Monitor *mon);
43:
44: #endif /* !MONITOR_H */
unix.superglobalmegacorp.com