]> git.proxmox.com Git - qemu.git/commitdiff
libqemustub: vmstate register/unregister stubs
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 5 Dec 2012 16:49:08 +0000 (14:49 -0200)
committerAndreas Färber <afaerber@suse.de>
Tue, 8 Jan 2013 20:03:43 +0000 (21:03 +0100)
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 <ehabkost@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
stubs/Makefile.objs
stubs/vmstate.c [new file with mode: 0644]

index 00f0b641d6b11e4f0a6a7f9175751c100187d1bb..ca2197e6fb16f5a483e5aaef1a926a15efe922e6 100644 (file)
@@ -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 (file)
index 0000000..3682af5
--- /dev/null
@@ -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)
+{
+}