qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 02/24] qom: add object_child_foreach
Date: Fri, 11 May 2012 16:59:44 +0200	[thread overview]
Message-ID: <4FAD2960.8020308@suse.de> (raw)
In-Reply-To: <4F86FCC2.60901@suse.de>

Am 12.04.2012 18:03, schrieb Andreas Färber:
> Am 11.04.2012 23:30, schrieb Paolo Bonzini:
>> A utility function that will be used to implement hierarchical realization.
>>
>> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>

Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>

>> ---
>>  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 char *name,
>>                               struct Error **errp);
>>  
>>  /**
>> + * 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 returns
>> + * 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 char *name,
>>   */
>>  Object *container_get(const char *path);
>>  
>> -
> 
> 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

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

           reply	other threads:[~2012-05-11 15:00 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <4F86FCC2.60901@suse.de>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FAD2960.8020308@suse.de \
    --to=afaerber@suse.de \
    --cc=aliguori@us.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).