aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2012-05-02 13:30:53 +0200
committerAndreas Färber <afaerber@suse.de>2012-05-12 14:17:52 +0200
commit0466e458dee22d8990aeae2b328cab6a2028e653 (patch)
treef6a31b8ce1c67b8e4f485e97c546625a5d9978d6 /include
parentbed38e425f651ec20a64c73cd7410bd529b81218 (diff)
qom: Documentation addition for object_class_by_name()
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> [AF: Document the possible NULL return value] Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/qemu/object.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/qemu/object.h b/include/qemu/object.h
index ca1649c918..d93b77293f 100644
--- a/include/qemu/object.h
+++ b/include/qemu/object.h
@@ -555,6 +555,12 @@ ObjectClass *object_class_dynamic_cast(ObjectClass *klass,
*/
const char *object_class_get_name(ObjectClass *klass);
+/**
+ * object_class_by_name:
+ * @typename: The QOM typename to obtain the class for.
+ *
+ * Returns: The class for @typename or %NULL if not found.
+ */
ObjectClass *object_class_by_name(const char *typename);
void object_class_foreach(void (*fn)(ObjectClass *klass, void *opaque),