mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qdev: Remove qdev_prop_exists()
Can be replaced everywhere with object_property_find(). Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
ac7d1ba6d1
commit
8cb6789a31
6 changed files with 12 additions and 9 deletions
|
@ -635,6 +635,15 @@ void object_property_add(Object *obj, const char *name, const char *type,
|
|||
|
||||
void object_property_del(Object *obj, const char *name, struct Error **errp);
|
||||
|
||||
/**
|
||||
* object_property_find:
|
||||
* @obj: the object
|
||||
* @name: the name of the property
|
||||
*
|
||||
* Look up a property for an object and return its #ObjectProperty if found.
|
||||
*/
|
||||
ObjectProperty *object_property_find(Object *obj, const char *name);
|
||||
|
||||
void object_unparent(Object *obj);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue