From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45924) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSfHx-0004V0-1e for qemu-devel@nongnu.org; Thu, 10 May 2012 22:09:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSfHv-0007KR-6I for qemu-devel@nongnu.org; Thu, 10 May 2012 22:09:00 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52672 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSfHu-0007KN-WB for qemu-devel@nongnu.org; Thu, 10 May 2012 22:08:59 -0400 Message-ID: <4FAC74B3.3050308@suse.de> Date: Fri, 11 May 2012 04:08:51 +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> <4FA121BB.2060905@suse.de> In-Reply-To: <4FA121BB.2060905@suse.de> 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:59, schrieb Andreas F=E4rber: > Am 02.05.2012 13:30, schrieb Paolo Bonzini: >> Signed-off-by: Paolo Bonzini >> --- >> 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(ObjectClas= s *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. >=20 > ...or NULL if not found. >=20 >> + */ >> ObjectClass *object_class_by_name(const char *typename); >> =20 >> 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 --=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