mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-29 09:21:19 +00:00
6a2cbe77fa
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
20 lines
882 B
Django/Jinja
20 lines
882 B
Django/Jinja
{# One Shot function's dispatch code for transparent drivers.
|
|
Expected inputs:
|
|
* drivers: the list of driver descriptions.
|
|
* entry_point: the name of the entry point that this function dispatches to.
|
|
* entry_point_param(driver): the parameters to pass to the entry point.
|
|
* nest_indent: number of extra spaces to indent the code to.
|
|
-#}
|
|
{% for driver in drivers if driver.type == "transparent" -%}
|
|
{% for capability in driver.capabilities if entry_point in capability.entry_points -%}
|
|
#if ({% if capability['mbedtls/c_condition'] is defined -%}{{ capability['mbedtls/c_condition'] }} {% else -%} {{ 1 }} {% endif %})
|
|
{%- filter indent(width = nest_indent) %}
|
|
status = {{ entry_point_name(capability, entry_point, driver) }}({{entry_point_param(driver) | indent(20)}});
|
|
|
|
if( status != PSA_ERROR_NOT_SUPPORTED )
|
|
return( status );
|
|
{% endfilter -%}
|
|
#endif
|
|
{% endfor %}
|
|
{% endfor %}
|