Add helper functions for adding read-only properties, that work in the case where the value is in memory.
This is part of the ACPI series, since there was a bug here I'm resending just this chunk for more review. Changes from v1: don't pass pointer to visitor directly since it writes there fixes crash reported by Gerd Michael S. Tsirkin (4): qemu: add Error to typedefs qom: pull in qemu/typedefs qom: cleanup struct Error references qom: add pointer to int property helpers include/qemu/typedefs.h | 1 + include/qom/object.h | 73 +++++++++++++++++++++++++++++++------------------ qom/object.c | 60 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 108 insertions(+), 26 deletions(-) -- MST