qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/5] qom: allow creating an alias of a child<> p


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 3/5] qom: allow creating an alias of a child<> property
Date: Tue, 17 Jun 2014 18:46:25 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Il 17/06/2014 18:37, Andreas Färber ha scritto:
>
> Longer term, should "child" and "link" be macrofied and these
> hardcoded strlen's be fixed to avoid difficult developer traps if
> anyone ever tries to change the literal strings?
I think my preference would be a helper function that returns the T from
link<T> (non-dup'ed), which could then here be used as "link<%s>".

How can you return it non-dup'ed?  The trailing > gets in the way.

For now I just used strlen("child").

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]