aboutsummaryrefslogtreecommitdiff
path: root/monitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.h')
-rw-r--r--monitor.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/monitor.h b/monitor.h
index e5f2d2ba70..bd4ae34d48 100644
--- a/monitor.h
+++ b/monitor.h
@@ -3,10 +3,13 @@
#include "qemu-common.h"
#include "qemu-char.h"
+#include "qemu-error.h"
+#include "qerror.h"
#include "qdict.h"
#include "block.h"
extern Monitor *cur_mon;
+extern Monitor *default_mon;
/* flags for monitor_init */
#define MONITOR_IS_DEFAULT 0x01
@@ -28,6 +31,8 @@ typedef enum MonitorEvent {
QEVENT_MAX,
} MonitorEvent;
+int monitor_cur_is_qmp(void);
+
void monitor_protocol_event(MonitorEvent event, QObject *data);
void monitor_init(CharDriverState *chr, int flags);
@@ -48,4 +53,6 @@ void monitor_flush(Monitor *mon);
typedef void (MonitorCompletion)(void *opaque, QObject *ret_data);
+void monitor_set_error(Monitor *mon, QError *qerror);
+
#endif /* !MONITOR_H */