qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH qom-cpu v2 1/8] stubs: Add vmstate_register() stub


From: Andreas Färber
Subject: [Qemu-devel] [PATCH qom-cpu v2 1/8] stubs: Add vmstate_register() stub
Date: Mon, 18 Feb 2013 20:42:26 +0100

So far we only had vmstate_register_with_alias_id().

Signed-off-by: Andreas Färber <address@hidden>
---
 stubs/vmstate.c |    7 +++++++
 1 Datei geändert, 7 Zeilen hinzugefügt(+)

diff --git a/stubs/vmstate.c b/stubs/vmstate.c
index 3682af5..f64e9a3 100644
--- a/stubs/vmstate.c
+++ b/stubs/vmstate.c
@@ -10,6 +10,13 @@ int vmstate_register_with_alias_id(DeviceState *dev,
     return 0;
 }
 
+int vmstate_register(DeviceState *dev, int instance_id,
+                     const VMStateDescription *vmsd, void *base)
+{
+    return vmstate_register_with_alias_id(dev, instance_id, vmsd, base,
+                                          -1, 0);
+}
+
 void vmstate_unregister(DeviceState *dev,
                         const VMStateDescription *vmsd,
                         void *opaque)
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]