Skip to content

Commit

Permalink
Fix build with new yank feature by adding stubs
Browse files Browse the repository at this point in the history
Fixes: 5018605 ("Introduce yank feature")
Signed-off-by: Lukas Straub <[email protected]>
[AJB: tweak MAINTAINERS]
Signed-off-by: Alex Bennée <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Message-Id: <[email protected]>
Message-Id: <[email protected]>
  • Loading branch information
lukasstraub2 authored and stsquad committed Jan 18, 2021
1 parent a8a3abe commit 228e3ec
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2736,6 +2736,7 @@ Yank feature
M: Lukas Straub <[email protected]>
S: Odd fixes
F: util/yank.c
F: stubs/yank.c
F: include/qemu/yank.h
F: qapi/yank.json

Expand Down
1 change: 1 addition & 0 deletions stubs/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
29 changes: 29 additions & 0 deletions stubs/yank.c
Original file line number Diff line number Diff line change
@@ -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)
{
}


0 comments on commit 228e3ec

Please sign in to comment.