summaryrefslogtreecommitdiff
path: root/include/qemu
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-04-12 18:00:18 +0200
committerAndreas Färber <afaerber@suse.de>2012-06-18 15:14:38 +0200
commit89bfe000433a601d30729086e88519ff36b85103 (patch)
treee0d6b15a4dff198c4eec81369a13aaa47c0d1f0e /include/qemu
parent8cb6789a31e8c5823b36d84416433c145a1e6442 (diff)
downloadqemu-89bfe000433a601d30729086e88519ff36b85103.tar.gz
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/qemu')
-rw-r--r--include/qemu/object.h4
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);