diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-12 14:29:27 -0600 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-15 09:20:47 -0600 |
commit | a5296ca9df745d8af319282ab5d85439c211bb10 (patch) | |
tree | 3360250f1e139192aecdcfbe0ad6f1732ef9ef3a /hw/qdev.h | |
parent | 44677ded43f1dec44fabfe52f3a4f6eb28134f95 (diff) | |
download | qemu-a5296ca9df745d8af319282ab5d85439c211bb10.zip qemu-a5296ca9df745d8af319282ab5d85439c211bb10.tar.gz qemu-a5296ca9df745d8af319282ab5d85439c211bb10.tar.bz2 |
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |