Am 02.05.2012 13:59, schrieb Andreas Färber: > Am 02.05.2012 13:30, schrieb Paolo Bonzini: >> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> >> --- >> include/qemu/object.h | 6 ++++++ >> 1 file changed, 6 insertions(+) >> >> diff --git a/include/qemu/object.h b/include/qemu/object.h >> index ca1649c..d315dfa 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),
Thanks, applied to qom-next (with the suggested addition, using %NULL, and extended subject): http://repo.or.cz/w/qemu/afaerber.git/shortlog/refs/heads/qom-next If there's no protest, I'd also queue this for a 1.1-rc2 PULL. Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg