From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPYZK-00089H-Sy for qemu-devel@nongnu.org; Wed, 02 May 2012 08:22:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPYZE-0005iT-29 for qemu-devel@nongnu.org; Wed, 02 May 2012 08:22:06 -0400 Received: from cantor2.suse.de ([195.135.220.15]:47076 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPYZD-0005iC-S0 for qemu-devel@nongnu.org; Wed, 02 May 2012 08:21:59 -0400 Message-ID: <4FA126E6.5030508@suse.de> Date: Wed, 02 May 2012 14:21:58 +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-3-git-send-email-pbonzini@redhat.com> In-Reply-To: <1335958273-769-3-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 02/21] qom: add object_class_get_parent 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: > This simple bit of functionality was missing and we'll need it soon, > so add it. >=20 > Signed-off-by: Paolo Bonzini > --- > include/qemu/object.h | 8 ++++++++ > qom/object.c | 13 +++++++++++++ > 2 files changed, 21 insertions(+) >=20 > diff --git a/include/qemu/object.h b/include/qemu/object.h > index d315dfa..063c817 100644 > --- a/include/qemu/object.h > +++ b/include/qemu/object.h > @@ -548,6 +548,14 @@ ObjectClass *object_class_dynamic_cast(ObjectClass= *klass, > const char *typename); > =20 > /** > + * object_class_get_parent: > + * @klass: The class to obtain the parent for. > + * > + * Returns: The parent for @klass. Here too we should indicate that this may return NULL (rather than aborting). Other than that looks good. Andreas > + */ > +ObjectClass *object_class_get_parent(ObjectClass *klass); > + > +/** > * object_class_get_name: > * @klass: The class to obtain the QOM typename for. > * [snip] --=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