On Sun, Nov 17, 2019 at 03:50:32PM +0000, Felipe Franciosi wrote: > Traditionally, the uint-specific property helpers only offer getters. > When adding object (or class) uint types, one must therefore use the > generic property helper if a setter is needed. > > This enhances the uint-specific property helper APIs by adding a > 'readonly' field and modifying all users of that API to set this > parameter to true. If 'readonly' is false, though, the helper will add > an automatic setter for the value. > > Signed-off-by: Felipe Franciosi <[email protected]> > --- > hw/acpi/ich9.c | 4 +- > hw/acpi/pcihp.c | 6 +-- > hw/acpi/piix4.c | 12 +++--- > hw/isa/lpc_ich9.c | 4 +- > hw/ppc/spapr_drc.c | 2 +- > include/qom/object.h | 28 ++++++++---- > qom/object.c | 100 ++++++++++++++++++++++++++++++++----------- > ui/console.c | 3 +- > 8 files changed, 111 insertions(+), 48 deletions(-)
Reviewed-by: Stefan Hajnoczi <[email protected]>
signature.asc
Description: PGP signature
