aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-03-30 14:54:31 +0200
committerAndreas Färber <afaerber@suse.de>2012-06-18 15:14:38 +0200
commit8cb6789a31e8c5823b36d84416433c145a1e6442 (patch)
tree43f266ce5c165ee1c393173fa143e12b19a377d0 /include
parentac7d1ba6d15ff10343d2ff5ea331fa6a41174f3f (diff)
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')
-rw-r--r--include/qemu/object.h9
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);
/**