mirror of
https://github.com/qemu/qemu.git
synced 2025-07-27 20:29:44 +00:00

The correct way to set the current monitor for a coroutine handler will be different than for a blocking handler, so monitor_set_cur() needs to be called in qmp_dispatch(). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20201005155855.256490-7-kwolf@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
30 lines
431 B
C
30 lines
431 B
C
#include "qemu/osdep.h"
|
|
#include "monitor/monitor.h"
|
|
#include "qemu-common.h"
|
|
#include "qapi/qapi-emit-events.h"
|
|
|
|
Monitor *monitor_cur(void)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
Monitor *monitor_set_cur(Monitor *mon)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
void monitor_init_qmp(Chardev *chr, bool pretty, Error **errp)
|
|
{
|
|
}
|
|
|
|
void qapi_event_emit(QAPIEvent event, QDict *qdict)
|
|
{
|
|
}
|
|
|
|
int monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
|
|
{
|
|
abort();
|
|
}
|
|
|
|
|