diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-02-02 13:08:48 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-02-07 13:52:42 +0100 |
commit | dd0ba250ca83ed915ea192ab7539cdbb4e868c14 (patch) | |
tree | 6d127f77c7b78b10b9f1e6604ad44428df8f0514 /hw/qdev.h | |
parent | 7b009e5d09ee7786a4fd848327b6a8d8d7c01f0d (diff) |
qdev: let QOM free properties
Drop the special free callback. Instead, register a "regular"
release method in the non-legacy property.
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/qdev.h')
-rw-r--r-- | hw/qdev.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -145,9 +145,9 @@ struct PropertyInfo { int64_t max; int (*parse)(DeviceState *dev, Property *prop, const char *str); int (*print)(DeviceState *dev, Property *prop, char *dest, size_t len); - void (*free)(DeviceState *dev, Property *prop); ObjectPropertyAccessor *get; ObjectPropertyAccessor *set; + ObjectPropertyRelease *release; }; typedef struct GlobalProperty { |