qemu/stubs/replay.c
Philippe Mathieu-Daudé 5b5968c477 replay: Extract core API to 'exec/replay-core.h'
replay API is used deeply within TCG common code (common to user
and system emulation). Unfortunately "sysemu/replay.h" requires
some QAPI headers for few system-specific declarations, example:

  void replay_input_event(QemuConsole *src, InputEvent *evt);

Since commit c2651c0eaa ("qapi/meson: Restrict UI module to system
emulation and tools") the QAPI header defining the InputEvent is
not generated anymore.
To keep it simple, extract the 'core' replay prototypes to a new
"exec/replay-core.h" header which we include in the TCG code that
doesn't need the rest of the replay API.

Reviewed-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Message-Id: <20221219170806.60580-5-philmd@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
2023-02-27 22:29:01 +01:00

28 lines
347 B
C

#include "qemu/osdep.h"
#include "exec/replay-core.h"
ReplayMode replay_mode;
void replay_finish(void)
{
}
void replay_save_random(int ret, void *buf, size_t len)
{
}
int replay_read_random(void *buf, size_t len)
{
return 0;
}
bool replay_reverse_step(void)
{
return false;
}
bool replay_reverse_continue(void)
{
return false;
}