master
c 52 lines 1.07 KB
Raw
1 /*
2 * Stubs for qemu-vnc standalone binary.
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #include "qemu/osdep.h"
8
9 #include "system/runstate.h"
10 #include "hw/core/qdev.h"
11 #include "monitor/monitor.h"
12 #include "migration/vmstate.h"
13
14 bool runstate_is_running(void)
15 {
16 return true;
17 }
18
19 bool phase_check(MachineInitPhase phase)
20 {
21 return true;
22 }
23
24 DeviceState *qdev_find_recursive(BusState *bus, const char *id)
25 {
26 return NULL;
27 }
28
29 /*
30 * Provide the monitor stubs locally so that the linker does not
31 * pull stubs/monitor-core.c.o from libqemuutil.a (which would
32 * bring a conflicting qapi_event_emit definition).
33 */
34 Monitor *monitor_cur(void)
35 {
36 return NULL;
37 }
38
39 Monitor *monitor_set_cur(Coroutine *co, Monitor *mon)
40 {
41 return NULL;
42 }
43
44 /*
45 * Link-time stubs for VMState symbols referenced by VNC code.
46 * The standalone binary never performs migration, so these are
47 * never actually used at runtime.
48 */
49 const VMStateInfo vmstate_info_bool = {};
50 const VMStateInfo vmstate_info_int32 = {};
51 const VMStateInfo vmstate_info_uint32 = {};
52 const VMStateInfo vmstate_info_buffer = {};