[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v7 61/65] qdev: remove deprecated PropertyInfo.type and .enum_table fields



Re title: I think "deprecated" isn't the right word.  Let's go with
"unused", or maybe

    qdev: PropertyInfo.type and .enum_table are no longer used, drop

Marc-André Lureau <marcandre.lureau@xxxxxxxxxx> writes:

> Now that all PropertyInfo definitions use .qapi_type, remove the
> legacy .type (string) and .enum_table fields from PropertyInfo, and
> the .arrayinfo/.arrayfieldsize fields from Property.
>
> Remove fallback branches in qdev_property_add_static() and
> qdev_class_add_property() that used object_property_add() with
> prop->info->type: these always use the QAPI-aware registration
> path now. Simplify qdev_propinfo_enum_lookup(), prop_array_info()
> and prop_array_elem_size() to use the new fields directly.
>
> Signed-off-by: Markus Armbruster <armbru@xxxxxxxxxx>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.