Commit 6955264d58 for qemu.org
commit 6955264d5821b453d3e68472009fe445b55e6311
Author: Markus Armbruster <armbru@redhat.com>
Date: Thu Nov 5 09:03:10 2026 +0100
qom: Convert child and link properties to QAPI-aware registration
Child and link properties get serialized as QOM paths, i.e. as
strings. Use &str_type_info for them.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20261105080310.1656968-6-armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
diff --git a/qom/object.c b/qom/object.c
index 774a976c8b..9276b7a435 100644
--- a/qom/object.c
+++ b/qom/object.c
@@ -1914,7 +1914,7 @@ object_property_try_add_child(Object *obj, const char *name,
type = g_strdup_printf("child<%s>", object_get_typename(child));
- op = object_property_try_add(obj, name, type, NULL,
+ op = object_property_try_add(obj, name, type, &str_type_info,
object_get_child_property,
NULL, object_finalize_child_property,
child, errp);
@@ -2109,7 +2109,7 @@ object_add_link_prop(Object *obj, const char *name,
full_type = g_strdup_printf("link<%s>", type);
- op = object_property_add(obj, name, full_type, NULL,
+ op = object_property_add(obj, name, full_type, &str_type_info,
object_get_link_property,
check ? object_set_link_property : NULL,
object_release_link_property,
@@ -2146,7 +2146,7 @@ object_class_property_add_link(ObjectClass *oc,
full_type = g_strdup_printf("link<%s>", type);
- op = object_class_property_add(oc, name, full_type, NULL,
+ op = object_class_property_add(oc, name, full_type, &str_type_info,
object_get_link_property,
check ? object_set_link_property : NULL,
object_release_link_property,