Files
qemu/stubs/qapi-event-emit.c
Marc-André Lureau 856b7f1768 stubs: split monitor-core stubs into separate compilation units
The wild linker rejects duplicate symbols even from archive members.
When qemu-storage-daemon links both libqmp (with monitor/monitor.c)
and libqemuutil (with stubs/monitor-core.c), all symbols from the
stub .o are pulled in, causing duplicates for monitor_cur,
monitor_set_cur, and qapi_event_emit.

Split each stub group into its own file so the linker only pulls in
archive members whose symbols are actually needed.

Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260828-qemu-no-hmp-v5-46-9227de146347@redhat.com>
2026-08-29 12:07:45 +04:00

9 lines
165 B
C

/* SPDX-License-Identifier: GPL-2.0-or-later */
#include "qemu/osdep.h"
#include "qapi/qapi-emit-events.h"
void qapi_event_emit(QAPIEvent event, QDict *qdict)
{
}