From 0e333755ff3a27cfab4dcd5132b0c6dfe7a209aa Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 3 Sep 2024 00:36:56 +0300 Subject: utils: ipc: Include in generated headers where needed Depending on the types used in the IPA interface, generated headers may use the std::string class. Include when needed. Signed-off-by: Laurent Pinchart Reviewed-by: Milan Zamazal --- .../ipc/generators/libcamera_templates/core_ipa_interface.h.tmpl | 1 + .../ipc/generators/libcamera_templates/module_ipa_interface.h.tmpl | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'utils/codegen/ipc/generators/libcamera_templates') diff --git a/utils/codegen/ipc/generators/libcamera_templates/core_ipa_interface.h.tmpl b/utils/codegen/ipc/generators/libcamera_templates/core_ipa_interface.h.tmpl index 7f2d0810..590135b8 100644 --- a/utils/codegen/ipc/generators/libcamera_templates/core_ipa_interface.h.tmpl +++ b/utils/codegen/ipc/generators/libcamera_templates/core_ipa_interface.h.tmpl @@ -15,6 +15,7 @@ #pragma once {% if has_map %}#include {% endif %} +{% if has_string %}#include {% endif %} {% if has_array %}#include {% endif %} #include diff --git a/utils/codegen/ipc/generators/libcamera_templates/module_ipa_interface.h.tmpl b/utils/codegen/ipc/generators/libcamera_templates/module_ipa_interface.h.tmpl index 4d88a3d7..0111d0c4 100644 --- a/utils/codegen/ipc/generators/libcamera_templates/module_ipa_interface.h.tmpl +++ b/utils/codegen/ipc/generators/libcamera_templates/module_ipa_interface.h.tmpl @@ -14,12 +14,13 @@ #pragma once -#include -#include - {% if has_map %}#include {% endif %} +{% if has_string %}#include {% endif %} {% if has_array %}#include {% endif %} +#include +#include + namespace libcamera { {%- if has_namespace %} {% for ns in namespace %} -- cgit v1.2.1