diff options
author | Paolo Bonzini | 2012-03-30 14:54:31 +0200 |
---|---|---|
committer | Andreas Färber | 2012-06-18 15:14:38 +0200 |
commit | 8cb6789a31e8c5823b36d84416433c145a1e6442 (patch) | |
tree | 43f266ce5c165ee1c393173fa143e12b19a377d0 /include/qemu | |
parent | qbus: Initialize in standard way (diff) | |
download | qemu-8cb6789a31e8c5823b36d84416433c145a1e6442.tar.gz qemu-8cb6789a31e8c5823b36d84416433c145a1e6442.tar.xz qemu-8cb6789a31e8c5823b36d84416433c145a1e6442.zip |
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>
Diffstat (limited to 'include/qemu')
-rw-r--r-- | include/qemu/object.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/qemu/object.h b/include/qemu/object.h index b16d99be8c..8cac7da420 100644 --- a/include/qemu/object.h +++ b/include/qemu/object.h @@ -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); /** |