Files
qemu-qemu/tools/qemu-vnc/stubs.c
Daniel P. Berrangé 28eb8ea2ef monitor: drop unused monitor_cur_is_qmp
The previous patch dropped the only remaining use of
monitor_cur_is_qmp.

Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Tested-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Message-ID: <20260706135824.2623960-19-berrange@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2026-07-07 11:16:25 +02:00

58 lines
1.1 KiB
C

/*
* Stubs for qemu-vnc standalone binary.
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "qemu/osdep.h"
#include "system/runstate.h"
#include "hw/core/qdev.h"
#include "monitor/monitor.h"
#include "migration/vmstate.h"
bool runstate_is_running(void)
{
return true;
}
bool phase_check(MachineInitPhase phase)
{
return true;
}
DeviceState *qdev_find_recursive(BusState *bus, const char *id)
{
return NULL;
}
/*
* Provide the monitor stubs locally so that the linker does not
* pull stubs/monitor-core.c.o from libqemuutil.a (which would
* bring a conflicting qapi_event_emit definition).
*/
Monitor *monitor_cur(void)
{
return NULL;
}
Monitor *monitor_set_cur(Coroutine *co, Monitor *mon)
{
return NULL;
}
int monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
{
return -1;
}
/*
* Link-time stubs for VMState symbols referenced by VNC code.
* The standalone binary never performs migration, so these are
* never actually used at runtime.
*/
const VMStateInfo vmstate_info_bool = {};
const VMStateInfo vmstate_info_int32 = {};
const VMStateInfo vmstate_info_uint32 = {};
const VMStateInfo vmstate_info_buffer = {};