diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2011-12-18 17:05:11 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-12-19 10:27:34 -0600 |
commit | ca2cc7888846ab85ee6549bb0b68ac0cbf16a4e9 (patch) | |
tree | bf82917bb636439efc4cfccb98183965774b16e2 /hw/qdev.h | |
parent | cafe5bdb9a6179f80562e99ef3f29bdf0b5df678 (diff) | |
download | hqemu-ca2cc7888846ab85ee6549bb0b68ac0cbf16a4e9.zip hqemu-ca2cc7888846ab85ee6549bb0b68ac0cbf16a4e9.tar.gz |
qom: register qdev properties also as non-legacy properties
Push legacy properties into a "legacy-..." namespace, and make them
available with correct types too.
For now, all properties come in both variants. This need not be the
case for string properties. We will revisit this after -device is
changed to actually use the legacy properties.
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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, 3 insertions, 4 deletions
@@ -487,11 +487,10 @@ 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! + * @qdev_property_add_static - add a @Property to a device referencing a + * field in a struct. */ -void qdev_property_add_legacy(DeviceState *dev, Property *prop, Error **errp); +void qdev_property_add_static(DeviceState *dev, Property *prop, Error **errp); /** * @qdev_get_root - returns the root device of the composition tree |