summary refs log tree commit diff stats
path: root/hw/qdev.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2011-12-18 17:05:11 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-19 10:27:34 -0600
commitca2cc7888846ab85ee6549bb0b68ac0cbf16a4e9 (patch)
treebf82917bb636439efc4cfccb98183965774b16e2 /hw/qdev.h
parentcafe5bdb9a6179f80562e99ef3f29bdf0b5df678 (diff)
downloadfocaccia-qemu-ca2cc7888846ab85ee6549bb0b68ac0cbf16a4e9.tar.gz
focaccia-qemu-ca2cc7888846ab85ee6549bb0b68ac0cbf16a4e9.zip
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.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/hw/qdev.h b/hw/qdev.h
index 5f23cac664..d5896be40e 100644
--- a/hw/qdev.h
+++ b/hw/qdev.h
@@ -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