mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-26 05:45:08 +00:00
fbfc29e3bf
Most callers know which monitor type they want to have. Instead of calling monitor_init() with flags that can describe both types of monitors, make monitor_init_{hmp,qmp}() public interfaces that take specific bools instead of flags and call these functions directly. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20190613153405.24769-15-kwolf@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
30 lines
545 B
C
30 lines
545 B
C
#include "qemu/osdep.h"
|
|
#include "qapi/error.h"
|
|
#include "qapi/qapi-emit-events.h"
|
|
#include "monitor/monitor.h"
|
|
|
|
__thread Monitor *cur_mon;
|
|
|
|
int monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
|
|
{
|
|
abort();
|
|
}
|
|
|
|
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_qmp(Chardev *chr, bool pretty)
|
|
{
|
|
}
|
|
|
|
void monitor_init_hmp(Chardev *chr, bool use_readline)
|
|
{
|
|
}
|
|
|
|
void qapi_event_emit(QAPIEvent event, QDict *qdict)
|
|
{
|
|
}
|