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>
This commit is contained in:
1 parent
0fc0a3aab0
commit
6955264d58
1 file changed
+3
-3
+3
-3
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user