[PATCH 0/4] hw/qdev-properties: Constify Property* in DeviceClass

Philippe Mathieu-Daudé posted 4 patches 1 year, 1 month ago
hw/core/qdev-properties-system.c |  2 +-
hw/core/qdev-properties.c        | 14 +++++++-------
include/hw/qdev-core.h           |  2 +-
include/hw/qdev-properties.h     |  6 +++---
softmmu/qdev-monitor.c           |  4 ++--
5 files changed, 14 insertions(+), 14 deletions(-)
[PATCH 0/4] hw/qdev-properties: Constify Property* in DeviceClass
Posted by Philippe Mathieu-Daudé 1 year, 1 month ago
Qualify some Property pointers as 'const' when the
structure is accessed read-only.

Philippe Mathieu-Daudé (4):
  hw/qdev-properties: Constify Property* in object_field_prop_ptr()
  hw/qdev-properties: Constify Property* in PropertyInfo::print()
    handler
  hw/qdev-properties: Constify Property* in PropertyInfo::create()
    handler
  hw/qdev-properties: Constify DeviceClass::props_ field

 hw/core/qdev-properties-system.c |  2 +-
 hw/core/qdev-properties.c        | 14 +++++++-------
 include/hw/qdev-core.h           |  2 +-
 include/hw/qdev-properties.h     |  6 +++---
 softmmu/qdev-monitor.c           |  4 ++--
 5 files changed, 14 insertions(+), 14 deletions(-)

-- 
2.38.1


Re: [PATCH 0/4] hw/qdev-properties: Constify Property* in DeviceClass
Posted by Philippe Mathieu-Daudé 1 year, 1 month ago
On 3/2/23 11:12, Philippe Mathieu-Daudé wrote:
> Qualify some Property pointers as 'const' when the
> structure is accessed read-only.
> 
> Philippe Mathieu-Daudé (4):
>    hw/qdev-properties: Constify Property* in object_field_prop_ptr()
>    hw/qdev-properties: Constify Property* in PropertyInfo::print()
>      handler
>    hw/qdev-properties: Constify Property* in PropertyInfo::create()
>      handler
>    hw/qdev-properties: Constify DeviceClass::props_ field
Ping (trivial).