On Tue, 10 Feb 2026, Zhao Liu wrote:
Similar to object_property_try_add(), factor out
object_class_property_try_add().
This allows adding more arguments to the core implementation without
changing the signature of object_class_property_add(), avoiding the
need to modify the extensive number of callers distributed throughout
the code tree.
While at it, add documentation for these functions.
Signed-off-by: Zhao Liu <[email protected]>
---
include/qom/object.h | 56 ++++++++++++++++++++++++++++++++++++++++++++
qom/object.c | 34 ++++++++++++++++++++-------
2 files changed, 82 insertions(+), 8 deletions(-)
diff --git a/include/qom/object.h b/include/qom/object.h
index 05706d4d7e3a..060db136988b 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -1147,6 +1147,62 @@ ObjectProperty *object_property_add(Object *obj, const
char *name,
void object_property_del(Object *obj, const char *name);
+/**
+ * object_class_property_try_add:
This is renamed two patches later so maybe should be named like that here
and drop the renaming patch.
Regards,
BALATON Zoltan