mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
JSON upgrade to give function names
Function names can be provided against entry points. This helps to ensure easy migration for misnamed functions. Signed-off-by: Archana <archana.madhavan@silabs.com> Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com>
This commit is contained in:
committed by
Asfandyar Orakzai
parent
e829cd6953
commit
05efa17549
@ -3,7 +3,11 @@
|
||||
#if ({% if capability.depend_on is defined -%}{{ capability.depend_on }} {% else -%} {{ 1 }} {% endif %})
|
||||
{%- filter indent(width = nest_indent) %}
|
||||
case {{ driver.location }}:
|
||||
{% if capability.name is defined and entry_point in capability.name.keys() -%}
|
||||
return({{ capability.name[entry_point]}}({{entry_point_attributes(driver) | indent(20)}}));
|
||||
{% else -%}
|
||||
return({{driver.prefix}}_{{driver.type}}_{{entry_point}}({{entry_point_attributes(driver) | indent(20)}}));
|
||||
{% endif -%}
|
||||
{% endfilter -%}
|
||||
#endif
|
||||
{% endfor %}
|
||||
|
@ -2,7 +2,11 @@
|
||||
{% for capability in driver.capabilities if entry_point in capability.entry_points -%}
|
||||
#if ({% if capability.depend_on is defined -%}{{ capability.depend_on }} {% else -%} {{ 1 }} {% endif %})
|
||||
{%- filter indent(width = nest_indent) %}
|
||||
{% if capability.name is defined and entry_point in capability.name.keys() -%}
|
||||
status = {{ capability.name[entry_point]}}({{entry_point_attributes(driver) | indent(20)}});
|
||||
{% else -%}
|
||||
status = {{driver.prefix}}_{{driver.type}}_{{entry_point}}({{entry_point_attributes(driver) | indent(20)}});
|
||||
{% endif -%}
|
||||
|
||||
if( status != PSA_ERROR_NOT_SUPPORTED )
|
||||
return( status );
|
||||
|
Reference in New Issue
Block a user