diff mbox

[RFC,20/22] Stub functions

Message ID 008801cf9520$24ec45f0$6ec4d1d0$@Dovgaluk@ispras.ru
State New
Headers show

Commit Message

Pavel Dovgalyuk July 1, 2014, 11:32 a.m. UTC
Stubs for new functions and objects.

Signed-off-by: Pavel Dovgalyuk <pavel.dovgaluk@gmail.com>
---
diff mbox

Patch

diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs
index 528e161..b90c60a
--- a/stubs/Makefile.objs
+++ b/stubs/Makefile.objs
@@ -26,6 +26,7 @@  stub-obj-y += notify-event.o
 stub-obj-y += pci-drive-hot-add.o
 stub-obj-$(CONFIG_SPICE) += qemu-chr-open-spice.o
 stub-obj-y += qtest.o
+stub-obj-y += replay.o
 stub-obj-y += reset.o
 stub-obj-y += runstate-check.o
 stub-obj-y += set-fd-handler.o
diff --git a/stubs/replay.c b/stubs/replay.c
new file mode 100644
index 0000000..368ccfd
--- /dev/null
+++ b/stubs/replay.c
@@ -0,0 +1,72 @@ 
+#include "qemu-common.h"
+#include "sysemu/sysemu.h"
+#include "replay/replay.h"
+#include "qemu/log.h"
+
+int replay_mode;
+int replay_icount;
+QEMUClockType rtc_clock;
+int64_t realtime_clock_replay_offset;
+
+void replay_save_clock(unsigned int kind, int64_t clock)
+{
+}
+
+int64_t replay_read_clock(unsigned int kind)
+{
+    return 0;
+}
+
+int replay_checkpoint(unsigned int checkpoint)
+{
+    return 0;
+}
+
+void replay_add_event(unsigned int event_id, void *opaque)
+{
+}
+
+void replay_add_event2(unsigned int event_id, void *opaque, void *opaque2)
+{
+}
+
+int runstate_is_running(void)
+{
+    return 0;
+}
+
+uint64_t replay_get_current_step(void)
+{
+    return 0;
+}
+
+void GCC_FMT_ATTR(2, 3) qemu_log_mask(int mask, const char *fmt, ...)
+{
+}
+
+bool replay_has_checkpoint(unsigned int checkpoint)
+{
+    return false;
+}
+
+void replay_add_bh_event(void *bh, uint64_t id)
+{
+}
+
+void replay_add_thread_event(void *opaque, void *opaque2, uint64_t id)
+{
+}
+
+int64_t replay_get_icount(void)
+{
+    return 0;
+}
+
+void replay_clock_warp(void)
+{
+}
+
+int replay_get_play_submode(void)
+{
+    return 0;
+}
diff --git a/stubs/vmstate.c b/stubs/vmstate.c
index 778bc3f..2516403 100644
--- a/stubs/vmstate.c
+++ b/stubs/vmstate.c
@@ -3,6 +3,9 @@ 
 
 const VMStateDescription vmstate_dummy = {};
 
+const VMStateInfo vmstate_info_bool;
+const VMStateInfo vmstate_info_int64;
+
 int vmstate_register_with_alias_id(DeviceState *dev,
                                    int instance_id,
                                    const VMStateDescription *vmsd,