diff options
Diffstat (limited to 'monitor.h')
-rw-r--r-- | monitor.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 */ |