From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0HHT-0007Fw-Vj for qemu-devel@nongnu.org; Wed, 22 Feb 2012 13:51:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0HHS-0001Da-Nc for qemu-devel@nongnu.org; Wed, 22 Feb 2012 13:51:11 -0500 Received: from mail-pw0-f45.google.com ([209.85.160.45]:56531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0HHS-0001DQ-AZ for qemu-devel@nongnu.org; Wed, 22 Feb 2012 13:51:10 -0500 Received: by pbbro12 with SMTP id ro12so564267pbb.4 for ; Wed, 22 Feb 2012 10:51:09 -0800 (PST) Message-ID: <4F453919.8050001@redhat.com> Date: Wed, 22 Feb 2012 12:51:05 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <1329819262-4617-1-git-send-email-alexander_barabash@mentor.com> In-Reply-To: <1329819262-4617-1-git-send-email-alexander_barabash@mentor.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qom: Document ways to retrieve child object added by object_property_add_child() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: alexander_barabash@mentor.com Cc: pbonzini@redhat.com, qemu-devel@nongnu.org On 02/21/2012 04:14 AM, alexander_barabash@mentor.com wrote: > From: Alexander Barabash > > object_property_add_child() creates a property whose values as a string is > the child object's canonical path. > > Signed-off-by: Alexander Barabash Applied. Thanks. Regards, Anthony Liguori > --- > include/qemu/object.h | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/include/qemu/object.h b/include/qemu/object.h > index ba2409d..d9e9221 100644 > --- a/include/qemu/object.h > +++ b/include/qemu/object.h > @@ -808,6 +808,10 @@ Object *object_resolve_path_type(const char *path, const char *typename, > * > * There is no way for a child to determine what its parent is. It is not > * a bidirectional relationship. This is by design. > + * > + * The value of a child property as a C string will be the child object's > + * canonical path. It can be retrieved using object_property_get_str(). > + * The child object itself can be retrieved using object_property_get_link(). > */ > void object_property_add_child(Object *obj, const char *name, > Object *child, struct Error **errp);