mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
qom: Add object_property_set_default_list()
This function provides a default for properties that are accessed using the list visitor interface. The default is always an empty list. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-ID: <20231109174240.72376-10-kwolf@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
@ -1093,6 +1093,14 @@ void object_property_set_default_bool(ObjectProperty *prop, bool value);
|
||||
*/
|
||||
void object_property_set_default_str(ObjectProperty *prop, const char *value);
|
||||
|
||||
/**
|
||||
* object_property_set_default_list:
|
||||
* @prop: the property to set
|
||||
*
|
||||
* Set the property default value to be an empty list.
|
||||
*/
|
||||
void object_property_set_default_list(ObjectProperty *prop);
|
||||
|
||||
/**
|
||||
* object_property_set_default_int:
|
||||
* @prop: the property to set
|
||||
|
Reference in New Issue
Block a user