Re: [PATCH v2 07/53] qom: add qapi_type field to ObjectProperty

Marc-André Lureau <[email protected]>
Newsgroups org.nongnu.qemu-devel
Message-ID <CAMxuvayWNZj5euBZXppptppq4wWdpuus5AbtYkhDd684_RCfCw@mail.gmail.com>
Hi

On Fri, Aug 7, 2026 at 1:16 PM Markus Armbruster <[email protected]> wrote:
>
> Marc-André Lureau <[email protected]> writes:
>
> > Add a const pointer to QAPITypeInfo in ObjectProperty. NULL for legacy
> > properties, set by new QAPI-aware registration wrappers.
> >
> > Signed-off-by: Marc-André Lureau <[email protected]>
>
> "Legacy properties" is mildly confusing if you've been around long
> enough.  They're gone since commit a61383f7ab (qdev: Legacy properties
> are now unused internally, drop, 2025-10-22).  I'd avoid the term.
>
> I believe the new pointer is always null for now.  It will be non-null
> for properties created in new, QAPI-aware ways.
>
> What about something like
>
>   Add a const pointer to QAPITypeInfo in ObjectProperty. NULL for now,
>   but future patches will add means to make it non-null. The
>   QAPITypeInfo will then be used by QOM introspection to tie the
>   property to a QAPI type.

adjusted, thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.