4 #include "qemu-common.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
17 typedef enum MonitorEvent
{
24 QEVENT_VNC_INITIALIZED
,
25 QEVENT_VNC_DISCONNECTED
,
26 QEVENT_BLOCK_IO_ERROR
,
30 void monitor_protocol_event(MonitorEvent event
, QObject
*data
);
31 void monitor_init(CharDriverState
*chr
, int flags
);
33 int monitor_suspend(Monitor
*mon
);
34 void monitor_resume(Monitor
*mon
);
36 void monitor_read_bdrv_key_start(Monitor
*mon
, BlockDriverState
*bs
,
37 BlockDriverCompletionFunc
*completion_cb
,
40 int monitor_get_fd(Monitor
*mon
, const char *fdname
);
42 void monitor_vprintf(Monitor
*mon
, const char *fmt
, va_list ap
);
43 void monitor_printf(Monitor
*mon
, const char *fmt
, ...)
44 __attribute__ ((__format__ (__printf__
, 2, 3)));
45 void monitor_print_filename(Monitor
*mon
, const char *filename
);
46 void monitor_flush(Monitor
*mon
);
48 typedef void (MonitorCompletion
)(void *opaque
, QObject
*ret_data
);
50 #endif /* !MONITOR_H */