aboutsummaryrefslogtreecommitdiff
path: root/stubs/change-state-handler.c
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2017-08-15 21:07:37 +0800
committerEric Blake <eblake@redhat.com>2017-08-15 10:03:27 -0500
commit80adf54ecc3b456828f3d6fe71eeda5572369bb2 (patch)
treeb49e303d87464b34f38a8409432d8986fb365bde /stubs/change-state-handler.c
parentcbaddb25b20060fa0b0a2a46d5ccca65cffd1a6f (diff)
stubs: Add vm state change handler stubs
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 <famz@redhat.com> Message-Id: <20170815130740.31229-2-famz@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'stubs/change-state-handler.c')
-rw-r--r--stubs/change-state-handler.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/stubs/change-state-handler.c b/stubs/change-state-handler.c
new file mode 100644
index 0000000000..01b1c6986d
--- /dev/null
+++ b/stubs/change-state-handler.c
@@ -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. */
+}