[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Fix build with new yank feature by adding stubs
From: |
Lukas Straub |
Subject: |
[PATCH] Fix build with new yank feature by adding stubs |
Date: |
Thu, 14 Jan 2021 14:19:18 +0100 |
Signed-off-by: Lukas Straub <lukasstraub2@web.de>
---
stubs/meson.build | 1 +
stubs/yank.c | 29 +++++++++++++++++++++++++++++
2 files changed, 30 insertions(+)
create mode 100644 stubs/yank.c
diff --git a/stubs/meson.build b/stubs/meson.build
index 80b1d81a31..1a656cd070 100644
--- a/stubs/meson.build
+++ b/stubs/meson.build
@@ -47,6 +47,7 @@ stub_ss.add(files('vm-stop.c'))
stub_ss.add(files('win32-kbd-hook.c'))
stub_ss.add(files('cpu-synchronize-state.c'))
if have_block
+ stub_ss.add(files('yank.c'))
stub_ss.add(files('replay-tools.c'))
endif
if have_system
diff --git a/stubs/yank.c b/stubs/yank.c
new file mode 100644
index 0000000000..6090416065
--- /dev/null
+++ b/stubs/yank.c
@@ -0,0 +1,29 @@
+#include "qemu/osdep.h"
+#include "qemu/yank.h"
+
+bool yank_register_instance(const YankInstance *instance, Error **errp)
+{
+ return true;
+}
+
+void yank_unregister_instance(const YankInstance *instance)
+{
+}
+
+void yank_register_function(const YankInstance *instance,
+ YankFn *func,
+ void *opaque)
+{
+}
+
+void yank_unregister_function(const YankInstance *instance,
+ YankFn *func,
+ void *opaque)
+{
+}
+
+void yank_generic_iochannel(void *opaque)
+{
+}
+
+
--
2.29.2
pgp0d4f2WxFaW.pgp
Description: OpenPGP digital signature
- [PULL 2/7] block/nbd.c: Add yank feature, (continued)
- [PULL 2/7] block/nbd.c: Add yank feature, Markus Armbruster, 2021/01/13
- [PULL 1/7] Introduce yank feature, Markus Armbruster, 2021/01/13
- [PULL 7/7] tests/test-char.c: Wait for the chardev to connect in char_socket_client_dupid_test, Markus Armbruster, 2021/01/13
- [PULL 3/7] chardev/char-socket.c: Add yank feature, Markus Armbruster, 2021/01/13
- Re: [PULL 0/7] Yank patches patches for 2021-01-13, Peter Maydell, 2021/01/13