[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/8] qom: Use qlit to represent property defaults
From: |
Eduardo Habkost |
Subject: |
[PATCH 0/8] qom: Use qlit to represent property defaults |
Date: |
Mon, 9 Nov 2020 16:25:48 -0500 |
Based-on: 20201104160021.2342108-1-ehabkost@redhat.com
Git branch: https://gitlab.com/ehabkost/qemu/-/commits/work/qdev-qlit-defaults
This extend qlit.h to support all QNum types (signed int,
unsigned int, and double), and use QLitObject to represent field
property defaults.
It allows us to get rid of most type-specific .set_default_value
functions for QOM property types.
Eduardo Habkost (8):
qobject: Include API docs in docs/devel/qobject.html
qnum: Make qnum_get_double() get const pointer
qnum: QNumValue type for QNum value literals
qnum: qnum_value_is_equal() function
qlit: Support all types of QNums
qlit: qlit_type() function
qom: Make object_property_set_default() public
qom: Use qlit to represent property defaults
docs/devel/index.rst | 1 +
docs/devel/qobject.rst | 11 +++
include/hw/qdev-properties-system.h | 2 +-
include/qapi/qmp/qlit.h | 16 +++-
include/qapi/qmp/qnum.h | 47 ++++++++++-
include/qapi/qmp/qobject.h | 48 +++++++----
include/qom/field-property-internal.h | 4 -
include/qom/field-property.h | 26 +++---
include/qom/object.h | 11 +++
include/qom/property-types.h | 21 ++---
hw/core/qdev-properties-system.c | 8 --
qobject/qlit.c | 4 +-
qobject/qnum.c | 116 +++++++++++++++-----------
qom/field-property.c | 27 ++++--
qom/object.c | 2 +-
qom/property-types.c | 36 ++------
tests/check-qjson.c | 72 ++++++++++++++--
17 files changed, 295 insertions(+), 157 deletions(-)
create mode 100644 docs/devel/qobject.rst
--
2.28.0
- [PATCH 0/8] qom: Use qlit to represent property defaults,
Eduardo Habkost <=
- [PATCH 2/8] qnum: Make qnum_get_double() get const pointer, Eduardo Habkost, 2020/11/09
- [PATCH 1/8] qobject: Include API docs in docs/devel/qobject.html, Eduardo Habkost, 2020/11/09
- [PATCH 4/8] qnum: qnum_value_is_equal() function, Eduardo Habkost, 2020/11/09
- [PATCH 5/8] qlit: Support all types of QNums, Eduardo Habkost, 2020/11/09
- [PATCH 6/8] qlit: qlit_type() function, Eduardo Habkost, 2020/11/09
- [PATCH 8/8] qom: Use qlit to represent property defaults, Eduardo Habkost, 2020/11/09
- [PATCH 3/8] qnum: QNumValue type for QNum value literals, Eduardo Habkost, 2020/11/09
- [PATCH 7/8] qom: Make object_property_set_default() public, Eduardo Habkost, 2020/11/09
- Re: [PATCH 0/8] qom: Use qlit to represent property defaults, no-reply, 2020/11/09
- Re: [PATCH 0/8] qom: Use qlit to represent property defaults, Paolo Bonzini, 2020/11/10