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

Markus Armbruster <[email protected]>
Newsgroups gmane.comp.emulators.qemu
Message-ID <[email protected]>
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.
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.