[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [Qemu-devel] [PATCH] qom/object.h: remove some child/
Re: [Qemu-trivial] [Qemu-devel] [PATCH] qom/object.h: remove some child/parent doc
Fri, 4 Sep 2015 14:53:31 -0700
On Fri, Sep 4, 2015 at 2:42 PM, Marc-André Lureau
> On Fri, Sep 4, 2015 at 11:25 PM, Peter Crosthwaite
> <address@hidden> wrote:
>> On Fri, Sep 4, 2015 at 2:01 PM, <address@hidden> wrote:
>>> From: Marc-André Lureau <address@hidden>
>>> It looks like this documentation is obsolete: a child object may lookup
>>> its parent stored in the Object struct.
>> Using a function wrapper or direct access to Object structure field?
> By direct access to the struct field.
>> The latter would indicate they are workarounds. Which legit uses of
>> parent identification are you referring to?
> I am not saying this is legit or not to use this field, it's just
> wrong documentation to me: the relationship is bidirectionnal. That's
> one of the few differences with the link<> properties.
It is biderctional for the implementation but not for the QOM API. I
think the comment is correct as long as there is no exposed API to do
> Marc-André Lureau