]> git.ipfire.org Git - thirdparty/qemu.git/blobdiff - stubs/vmstate.c
qtest: fix qtest_qmp_device_add leak
[thirdparty/qemu.git] / stubs / vmstate.c
index 6d52f29bb2f1f91fde23173a59ddbebedfb76a72..e1e89b87f0d89b122d4e8b3b49dcffa5e736405f 100644 (file)
@@ -1,7 +1,5 @@
 #include "qemu/osdep.h"
-#include "qemu-common.h"
 #include "migration/vmstate.h"
-#include "migration/migration.h"
 
 const VMStateDescription vmstate_dummy = {};
 
@@ -21,7 +19,7 @@ void vmstate_unregister(DeviceState *dev,
 {
 }
 
-int check_migratable(Object *obj, Error **err)
+bool vmstate_check_only_migratable(const VMStateDescription *vmsd)
 {
-    return 0;
+    return true;
 }