From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:47492) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSrK2-0002i7-31 for qemu-devel@nongnu.org; Fri, 11 May 2012 11:00:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SSrJu-0006zU-DW for qemu-devel@nongnu.org; Fri, 11 May 2012 10:59:57 -0400 Received: from cantor2.suse.de ([195.135.220.15]:42233 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SSrJu-0006zD-4Q for qemu-devel@nongnu.org; Fri, 11 May 2012 10:59:50 -0400 Message-ID: <4FAD2960.8020308@suse.de> Date: Fri, 11 May 2012 16:59:44 +0200 From: =?ISO-8859-15?Q?Andreas_F=E4rber?= MIME-Version: 1.0 References: <1334179793-5914-1-git-send-email-pbonzini@redhat.com> <1334179842-6061-2-git-send-email-pbonzini@redhat.com> <4F86FCC2.60901@suse.de> In-Reply-To: <4F86FCC2.60901@suse.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v2 02/24] qom: add object_child_foreach List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org Am 12.04.2012 18:03, schrieb Andreas F=E4rber: > Am 11.04.2012 23:30, schrieb Paolo Bonzini: >> A utility function that will be used to implement hierarchical realiza= tion. >> >> Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori >> --- >> include/qemu/object.h | 14 +++++++++++++- >> qom/object.c | 17 +++++++++++++++++ >> 2 files changed, 30 insertions(+), 1 deletion(-) >> >> diff --git a/include/qemu/object.h b/include/qemu/object.h >> index f814521..470efe3 100644 >> --- a/include/qemu/object.h >> +++ b/include/qemu/object.h >> @@ -918,6 +918,19 @@ void object_property_add_str(Object *obj, const c= har *name, >> struct Error **errp); >> =20 >> /** >> + * object_child_foreach: >> + * @obj: the object whose children will be navigated >> + * @fn: the iterator function to be called >> + * @opaque: an opaque value that will be passed to the iterator >> + * >> + * Call @fn passing each child of @obj and @opaque to it, until @fn r= eturns >> + * non-zero. Return the last value returned by @fn, or 0 if there is= no >> + * child. I've turned the last sentence into a gtk-doc Returns: statement. >> + */ >> +int object_child_foreach(Object *obj, int (*fn)(Object *child, void *= opaque), >> + void *opaque); >> + >> +/** >> * container_get: >> * @path: path to the container >> * >> @@ -928,5 +941,4 @@ void object_property_add_str(Object *obj, const ch= ar *name, >> */ >> Object *container_get(const char *path); >> =20 >> - >=20 > Unrelated whitespace change. Thanks, applied to qom-next (with whitespace change dropped): http://repo.or.cz/w/qemu/afaerber.git/shortlog/refs/heads/qom-next /-F --=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