aboutsummaryrefslogtreecommitdiff
path: root/stubs/monitor.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-10-24 10:15:17 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2017-01-16 17:52:35 +0100
commit869e9aecbe138e5e88920c0a8d444685fb3304e9 (patch)
tree86fe5e2287b6bc6a1094a39a6ddcaba334e499a9 /stubs/monitor.c
parent1007a37e20828171010935e48c5876071c78cf47 (diff)
stubs: merge all monitor stubs in one file, remove monitor_cur_is_qmp stub
monitor_cur_is_qmp was previously used by other stubs, but it's not since 397d30e ("qemu-error: remove dependency of stubs on monitor", 2016-11-01). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'stubs/monitor.c')
-rw-r--r--stubs/monitor.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/stubs/monitor.c b/stubs/monitor.c
new file mode 100644
index 0000000000..1d574b1c6f
--- /dev/null
+++ b/stubs/monitor.c
@@ -0,0 +1,16 @@
+#include "qemu/osdep.h"
+#include "qapi/error.h"
+#include "qemu-common.h"
+#include "monitor/monitor.h"
+
+Monitor *cur_mon = NULL;
+
+int monitor_get_fd(Monitor *mon, const char *name, Error **errp)
+{
+ error_setg(errp, "only QEMU supports file descriptor passing");
+ return -1;
+}
+
+void monitor_init(CharDriverState *chr, int flags)
+{
+}