diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-12-11 17:05:18 -0500 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-12-18 15:20:17 -0500 |
commit | c80fab0b61ee7d801caa4d04c3d014e76cd836c8 (patch) | |
tree | bbce95cce49e0f207f0b029100555a7f3047755a /include | |
parent | 23a1dae8c16e7e9e728dc8ae2daaece974bd7d01 (diff) | |
download | qemu-c80fab0b61ee7d801caa4d04c3d014e76cd836c8.zip qemu-c80fab0b61ee7d801caa4d04c3d014e76cd836c8.tar.gz qemu-c80fab0b61ee7d801caa4d04c3d014e76cd836c8.tar.bz2 |
qdev: Add name argument to PropertyInfo.create method
This will make it easier to remove the Property.name field in the
future.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20201211220529.2290218-22-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/qdev-properties.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/qdev-properties.h b/include/hw/qdev-properties.h index 476737b..ab9c538 100644 --- a/include/hw/qdev-properties.h +++ b/include/hw/qdev-properties.h @@ -34,7 +34,7 @@ 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, Property *prop); + void (*create)(ObjectClass *oc, const char *name, Property *prop); ObjectPropertyAccessor *get; ObjectPropertyAccessor *set; ObjectPropertyRelease *release; |