diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-05-02 13:30:53 +0200 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2012-05-12 14:17:52 +0200 |
commit | 0466e458dee22d8990aeae2b328cab6a2028e653 (patch) | |
tree | f6a31b8ce1c67b8e4f485e97c546625a5d9978d6 | |
parent | bed38e425f651ec20a64c73cd7410bd529b81218 (diff) | |
download | qemu-0466e458dee22d8990aeae2b328cab6a2028e653.zip qemu-0466e458dee22d8990aeae2b328cab6a2028e653.tar.gz qemu-0466e458dee22d8990aeae2b328cab6a2028e653.tar.bz2 |
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>
-rw-r--r-- | include/qemu/object.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/qemu/object.h b/include/qemu/object.h index ca1649c..d93b772 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), |