From: Eduardo Habkost Date: Wed, 5 Dec 2012 16:49:08 +0000 (-0200) Subject: libqemustub: vmstate register/unregister stubs X-Git-Tag: v1.4.0-rc0~226^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=083a5f8731bb3c7e0eae99dcdb1209027d770aaf;p=thirdparty%2Fqemu.git libqemustub: vmstate register/unregister stubs Add vmstate stub functions, so that qdev.o can be used without savevm.o when vmstate support is not necessary (i.e. by *-user). Signed-off-by: Eduardo Habkost Signed-off-by: Andreas Färber --- diff --git a/stubs/Makefile.objs b/stubs/Makefile.objs index 00f0b641d6b..ca2197e6fb1 100644 --- a/stubs/Makefile.objs +++ b/stubs/Makefile.objs @@ -6,4 +6,5 @@ stub-obj-y += fdset-remove-fd.o stub-obj-y += get-fd.o stub-obj-y += set-fd-handler.o stub-obj-y += reset.o +stub-obj-y += vmstate.o stub-obj-$(CONFIG_WIN32) += fd-register.o diff --git a/stubs/vmstate.c b/stubs/vmstate.c new file mode 100644 index 00000000000..3682af599eb --- /dev/null +++ b/stubs/vmstate.c @@ -0,0 +1,17 @@ +#include "qemu-common.h" +#include "migration/vmstate.h" + +int vmstate_register_with_alias_id(DeviceState *dev, + int instance_id, + const VMStateDescription *vmsd, + void *base, int alias_id, + int required_for_version) +{ + return 0; +} + +void vmstate_unregister(DeviceState *dev, + const VMStateDescription *vmsd, + void *opaque) +{ +}