From 078fbff8f41fbf5ab9d8389e63aa5d0dbbc1d5f5 Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Fri, 23 Apr 2021 19:26:17 +0900 Subject: utils: ipc: Use the proper namespace for mojom structs Structs defined in mojom previously used the namespace of the mojom file that was being used as the source. This is obviously not the correct namespace for structs that are defined in core.mojom. Fix the jinja function for getting the element type including namespace, and use it. Signed-off-by: Paul Elder Reviewed-by: Laurent Pinchart --- utils/ipc/generators/libcamera_templates/module_ipa_serializer.h.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/ipc/generators/libcamera_templates/module_ipa_serializer.h.tmpl') diff --git a/utils/ipc/generators/libcamera_templates/module_ipa_serializer.h.tmpl b/utils/ipc/generators/libcamera_templates/module_ipa_serializer.h.tmpl index 64ae99dc..779d2114 100644 --- a/utils/ipc/generators/libcamera_templates/module_ipa_serializer.h.tmpl +++ b/utils/ipc/generators/libcamera_templates/module_ipa_serializer.h.tmpl @@ -30,7 +30,7 @@ namespace libcamera { LOG_DECLARE_CATEGORY(IPADataSerializer) {% for struct in structs_nonempty %} template<> -class IPADataSerializer<{{struct|name_full(namespace_str)}}> +class IPADataSerializer<{{struct|name_full}}> { public: {{- serializer.serializer(struct, namespace_str)}} -- cgit v1.2.1