diff options
author | Eduardo Habkost | 2020-12-11 23:05:15 +0100 |
---|---|---|
committer | Eduardo Habkost | 2020-12-18 21:20:17 +0100 |
commit | e68c2cb75af2960dc6ad9705e71ab9cd97b901f6 (patch) | |
tree | 0a1a6a4c923be21946272df8d8efe8d157d6cd4a /include/hw | |
parent | sparc: Use DEFINE_PROP for nwindows property (diff) | |
download | qemu-e68c2cb75af2960dc6ad9705e71ab9cd97b901f6.tar.gz qemu-e68c2cb75af2960dc6ad9705e71ab9cd97b901f6.tar.xz qemu-e68c2cb75af2960dc6ad9705e71ab9cd97b901f6.zip |
qdev: Get just property name at error_set_from_qdev_prop_error()
Replace `Property *prop` parameter with `char *name`, to reduce
dependency of getter and setter functions on the Property struct
(which will be changed in following patches).
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20201211220529.2290218-19-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/hw')
-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 1b58e4f922..476737b9da 100644 --- a/include/hw/qdev-properties.h +++ b/include/hw/qdev-properties.h @@ -201,7 +201,7 @@ const GlobalProperty *qdev_find_global_prop(Object *obj, int qdev_prop_check_globals(void); void qdev_prop_set_globals(DeviceState *dev); void error_set_from_qdev_prop_error(Error **errp, int ret, Object *obj, - Property *prop, const char *value); + const char *name, const char *value); /** * qdev_property_add_static: |