Skip to content

Commit

Permalink
stubs: Add vm state change handler stubs
Browse files Browse the repository at this point in the history
They will be used by BlockBackend code in block-obj-y, which doesn't
always get linked with common-obj-y. Add stubs to keep ld happy.

Signed-off-by: Fam Zheng <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Eric Blake <[email protected]>
  • Loading branch information
Fam Zheng authored and ebblake committed Aug 15, 2017
1 parent cbaddb2 commit 80adf54
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions stubs/Makefile.objs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ stub-obj-y += is-daemonized.o
stub-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
stub-obj-y += machine-init-done.o
stub-obj-y += migr-blocker.o
stub-obj-y += change-state-handler.o
stub-obj-y += monitor.o
stub-obj-y += notify-event.o
stub-obj-y += qtest.o
Expand Down
14 changes: 14 additions & 0 deletions stubs/change-state-handler.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "qemu/osdep.h"
#include "qemu-common.h"
#include "sysemu/sysemu.h"

VMChangeStateEntry *qemu_add_vm_change_state_handler(VMChangeStateHandler *cb,
void *opaque)
{
return NULL;
}

void qemu_del_vm_change_state_handler(VMChangeStateEntry *e)
{
/* Nothing to do. */
}

0 comments on commit 80adf54

Please sign in to comment.