xref: /openbmc/qemu/stubs/monitor.c (revision 60d3af55)
1 #include "qemu/osdep.h"
2 #include "qapi/error.h"
3 #include "qapi/qapi-emit-events.h"
4 #include "monitor/monitor.h"
5 
6 __thread Monitor *cur_mon;
7 
8 int monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
9 {
10     abort();
11 }
12 
13 int monitor_get_fd(Monitor *mon, const char *name, Error **errp)
14 {
15     error_setg(errp, "only QEMU supports file descriptor passing");
16     return -1;
17 }
18 
19 void monitor_init_qmp(Chardev *chr, bool pretty)
20 {
21 }
22 
23 void monitor_init_hmp(Chardev *chr, bool use_readline)
24 {
25 }
26 
27 void qapi_event_emit(QAPIEvent event, QDict *qdict)
28 {
29 }
30