diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-10-24 10:15:17 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-01-16 17:52:35 +0100 |
commit | 869e9aecbe138e5e88920c0a8d444685fb3304e9 (patch) | |
tree | 86fe5e2287b6bc6a1094a39a6ddcaba334e499a9 /stubs/monitor.c | |
parent | 1007a37e20828171010935e48c5876071c78cf47 (diff) | |
download | qemu-869e9aecbe138e5e88920c0a8d444685fb3304e9.zip qemu-869e9aecbe138e5e88920c0a8d444685fb3304e9.tar.gz qemu-869e9aecbe138e5e88920c0a8d444685fb3304e9.tar.bz2 |
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.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/stubs/monitor.c b/stubs/monitor.c new file mode 100644 index 0000000..1d574b1 --- /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) +{ +} |