diff options
author | Eduardo Habkost | 2020-12-11 23:05:21 +0100 |
---|---|---|
committer | Eduardo Habkost | 2020-12-18 21:20:17 +0100 |
commit | f59c6d223def66df90c0b91415eb96d7ed5e058b (patch) | |
tree | 860a4f87463935ac9ee5a2532377de21a2ad13fa /include/hw/qdev-properties.h | |
parent | qdev: Move dev->realized check to qdev_property_set() (diff) | |
download | qemu-f59c6d223def66df90c0b91415eb96d7ed5e058b.tar.gz qemu-f59c6d223def66df90c0b91415eb96d7ed5e058b.tar.xz qemu-f59c6d223def66df90c0b91415eb96d7ed5e058b.zip |
qdev: Make PropertyInfo.create return ObjectProperty*
Returning ObjectProperty* will be useful for new property
registration code that will add additional callbacks
to ObjectProperty after registering it.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20201211220529.2290218-25-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw/qdev-properties.h')
-rw-r--r-- | include/hw/qdev-properties.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h index ab9c538ba4..aae882317a 100644 --- a/include/hw/qdev-properties.h +++ b/include/hw/qdev-properties.h @@ -34,7 +34,8 @@ struct PropertyInfo { const QEnumLookup *enum_table; int (*print)(Object *obj, Property *prop, char *dest, size_t len); void (*set_default_value)(ObjectProperty *op, const Property *prop); - void (*create)(ObjectClass *oc, const char *name, Property *prop); + ObjectProperty *(*create)(ObjectClass *oc, const char *name, + Property *prop); ObjectPropertyAccessor *get; ObjectPropertyAccessor *set; ObjectPropertyRelease *release; |