Re: [PATCH v2 05/10] qom: Create object-property-ptr.[ch]

Daniel P. BerrangĂ© <[email protected]> Wed, 10 Jun 2026 17:15:59 +0100
Newsgroups org.nongnu.qemu-rust,org.nongnu.qemu-arm,org.nongnu.qemu-devel
Message-ID <[email protected]>
On Tue, Jun 09, 2026 at 01:25:09PM -0400, Peter Xu wrote:
> Create object-property-ptr.[ch] files to include all the helpers for
> object_property_add*_ptr().
> 
> These set of helpers are handy because they look extremely familiar with
> qdev-properties, allowing the caller to provide a pointer and it will
> manage all the setters and getters.
> 
> The follow up patches may introduce more of such helpers.  Since object.c
> has been already too big, split that part out.

The "ptr" helpers are all instance level properties which is a concept
we discourage from new usage, in favour of class level properties.

I don't think we should be adding more "ptr" helpers, but rather
planning to eliminiate the (surprisingly little) usage of the
existing ones.

With regards,
Daniel
-- 
|: https://berrange.com       ~~        https://hachyderm.io/@berrange :|
|: https://libvirt.org          ~~          https://entangle-photo.org :|
|: https://pixelfed.art/berrange   ~~    https://fstop138.berrange.com :|