summary refs log tree commit diff stats
path: root/hw/qdev.h
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2011-12-12 14:29:27 -0600
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-15 09:20:47 -0600
commita5296ca9df745d8af319282ab5d85439c211bb10 (patch)
tree3360250f1e139192aecdcfbe0ad6f1732ef9ef3a /hw/qdev.h
parent44677ded43f1dec44fabfe52f3a4f6eb28134f95 (diff)
downloadfocaccia-qemu-a5296ca9df745d8af319282ab5d85439c211bb10.tar.gz
focaccia-qemu-a5296ca9df745d8af319282ab5d85439c211bb10.zip
qom: register legacy properties as new style properties (v2)
Expose all legacy properties through the new QOM property mechanism.  The qdev
property types are exposed through the 'legacy<>' namespace.  They are always
visited as strings since they do their own string parsing.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r--hw/qdev.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/qdev.h b/hw/qdev.h
index 2df3bb7032..3b629d4fbd 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -475,4 +475,11 @@ void qdev_property_set(DeviceState *dev, Visitor *v, const char *name,
 const char *qdev_property_get_type(DeviceState *dev, const char *name,
                                    Error **errp);
 
+/**
+ * @qdev_property_add_legacy - add a legacy @Property to a device
+ *
+ * DO NOT USE THIS IN NEW CODE!
+ */
+void qdev_property_add_legacy(DeviceState *dev, Property *prop, Error **errp);
+
 #endif