qemu-devel
[Top][All Lists]
Advanced

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

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


From: Philippe Mathieu-Daudé
Subject: [PATCH 0/4] hw/qdev-properties: Constify Property* in DeviceClass
Date: Fri, 3 Feb 2023 11:12:20 +0100

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




reply via email to

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