diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2020-12-11 17:05:07 -0500 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2020-12-15 10:02:07 -0500 |
commit | 395012756c15ce0a9f73c098d8eebb0fe3c9a7e6 (patch) | |
tree | 9ed5f1b42cbb69e8c889bc18701a545ca8feb477 /include/hw | |
parent | 828ade86ee925c132496113e7f88b22162d92ec5 (diff) | |
download | qemu-395012756c15ce0a9f73c098d8eebb0fe3c9a7e6.zip qemu-395012756c15ce0a9f73c098d8eebb0fe3c9a7e6.tar.gz qemu-395012756c15ce0a9f73c098d8eebb0fe3c9a7e6.tar.bz2 |
qdev: Make qdev_find_global_prop() get Object* argument
Make the code more generic and not specific to TYPE_DEVICE.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20201211220529.2290218-11-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 0b92cfc..7620095 100644 --- a/include/hw/qdev-properties.h +++ b/include/hw/qdev-properties.h @@ -305,7 +305,7 @@ void qdev_prop_set_enum(DeviceState *dev, const char *name, int value); void *qdev_get_prop_ptr(Object *obj, Property *prop); void qdev_prop_register_global(GlobalProperty *prop); -const GlobalProperty *qdev_find_global_prop(DeviceState *dev, +const GlobalProperty *qdev_find_global_prop(Object *obj, const char *name); int qdev_prop_check_globals(void); void qdev_prop_set_globals(DeviceState *dev); |