diff options
| author | Paolo Bonzini | 2012-04-12 18:00:18 +0200 |
|---|---|---|
| committer | Andreas Färber | 2012-06-18 15:14:38 +0200 |
| commit | 89bfe000433a601d30729086e88519ff36b85103 (patch) | |
| tree | e0d6b15a4dff198c4eec81369a13aaa47c0d1f0e /include | |
| parent | qdev: Remove qdev_prop_exists() (diff) | |
| download | qemu-89bfe000433a601d30729086e88519ff36b85103.tar.gz qemu-89bfe000433a601d30729086e88519ff36b85103.tar.xz qemu-89bfe000433a601d30729086e88519ff36b85103.zip | |
qom: Push error reporting to object_property_find()
Avoids duplicated error_set().
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[AF: Also drop error_set() in object_property_del().]
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
| -rw-r--r-- | include/qemu/object.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/qemu/object.h b/include/qemu/object.h index 8cac7da420..8b17776bb3 100644 --- a/include/qemu/object.h +++ b/include/qemu/object.h @@ -639,10 +639,12 @@ void object_property_del(Object *obj, const char *name, struct Error **errp); * object_property_find: * @obj: the object * @name: the name of the property + * @errp: returns an error if this function fails * * Look up a property for an object and return its #ObjectProperty if found. */ -ObjectProperty *object_property_find(Object *obj, const char *name); +ObjectProperty *object_property_find(Object *obj, const char *name, + struct Error **errp); void object_unparent(Object *obj); |
