scsi: move type from SCSIGenericState to SCSIDevice
[qemu/mdroth.git] / monitor.h
blob851fd336660508645369c578bb75d00804241a6b
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
14 #define MONITOR_USE_CONTROL 0x04
16 /* QMP events */
17 typedef enum MonitorEvent {
18 EVENT_DEBUG,
19 EVENT_SHUTDOWN,
20 EVENT_RESET,
21 EVENT_POWERDOWN,
22 EVENT_STOP,
23 EVENT_MAX,
24 } MonitorEvent;
26 void monitor_protocol_event(MonitorEvent event, QObject *data);
27 const char *monitor_cmdline_parse(const char *cmdline, int *flags);
28 void monitor_init(CharDriverState *chr, int flags);
30 int monitor_suspend(Monitor *mon);
31 void monitor_resume(Monitor *mon);
33 void monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs,
34 BlockDriverCompletionFunc *completion_cb,
35 void *opaque);
37 int monitor_get_fd(Monitor *mon, const char *fdname);
39 void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap);
40 void monitor_printf(Monitor *mon, const char *fmt, ...)
41 __attribute__ ((__format__ (__printf__, 2, 3)));
42 void monitor_print_filename(Monitor *mon, const char *filename);
43 void monitor_flush(Monitor *mon);
45 #endif /* !MONITOR_H */