From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPYDx-000717-OZ for qemu-devel@nongnu.org; Wed, 02 May 2012 08:00:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPYDw-0002yi-03 for qemu-devel@nongnu.org; Wed, 02 May 2012 08:00:01 -0400 Received: from cantor2.suse.de ([195.135.220.15]:44605 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPYDv-0002xv-Pu for qemu-devel@nongnu.org; Wed, 02 May 2012 07:59:59 -0400 Message-ID: <4FA121BB.2060905@suse.de> Date: Wed, 02 May 2012 13:59:55 +0200 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1335958273-769-1-git-send-email-pbonzini@redhat.com> <1335958273-769-2-git-send-email-pbonzini@redhat.com> In-Reply-To: <1335958273-769-2-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 01/21] qom: documentation addition List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, qemu-devel@nongnu.org, liwp@linux.vnet.ibm.com Am 02.05.2012 13:30, schrieb Paolo Bonzini: > Signed-off-by: Paolo Bonzini > --- > include/qemu/object.h | 6 ++++++ > 1 file changed, 6 insertions(+) >=20 > 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); > =20 > +/** > + * 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); > =20 > void object_class_foreach(void (*fn)(ObjectClass *klass, void *opaque)= , This is certainly a good fit for 1.1. :) Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=F6rffer; HRB 16746 AG N=FCrnbe= rg