[PATCH v1] utils: ipc: Do not duplicate signals in proxy object
Paul Elder
paul.elder at ideasonboard.com
Fri Apr 18 09:38:32 CEST 2025
Hi Barnabás,
Thanks for the patch.
On Tue, Apr 15, 2025 at 05:48:18PM +0200, Barnabás Pőcze wrote:
> The specific proxy type (see `module_ipa_proxy.h.tmpl`) inherits `IPAProxy`,
> the specific interface type, and `Object`. The interface type already
> provides public definitions of the necessary `Signal<>` objects (see
> `module_ipa_interface.h.tmpl`), so do not duplicate them.
Good catch.
>
> Signed-off-by: Barnabás Pőcze <barnabas.pocze at ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder at ideasonboard.com>
> ---
> .../libcamera_templates/module_ipa_proxy.h.tmpl | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/utils/codegen/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl b/utils/codegen/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl
> index e213b18a0..a0312a7c1 100644
> --- a/utils/codegen/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl
> +++ b/utils/codegen/ipc/generators/libcamera_templates/module_ipa_proxy.h.tmpl
> @@ -44,15 +44,6 @@ public:
> {{proxy_funcs.func_sig(proxy_name, method, "", false, true)|indent(8, true)}};
> {% endfor %}
>
> -{%- for method in interface_event.methods %}
> - Signal<
> -{%- for param in method.parameters -%}
> - {{"const " if not param|is_pod}}{{param|name}}{{" &" if not param|is_pod and not param|is_enum}}
> - {{- ", " if not loop.last}}
> -{%- endfor -%}
> -> {{method.mojom_name}};
> -{% endfor %}
> -
> private:
> void recvMessage(const IPCMessage &data);
>
> --
> 2.49.0
>
More information about the libcamera-devel
mailing list