aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/eolian/database_validate.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2018-01-16 16:10:43 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2018-01-16 16:37:52 +0100
commitdd2e579fecbe6ec4d1e0e7d46c82daff39be03c5 (patch)
tree3de0f6b1e40b3d5477f87792f46e186312972d88 /src/lib/eolian/database_validate.c
parenteolian: cache enum expr in the database (diff)
downloadefl-dd2e579fecbe6ec4d1e0e7d46c82daff39be03c5.tar.gz
eolian: do not require unit for expr eval APIs
The necessary information is now stored directly in the expr during database validation. Also enable expr validation for params.
Diffstat (limited to 'src/lib/eolian/database_validate.c')
-rw-r--r--src/lib/eolian/database_validate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/eolian/database_validate.c b/src/lib/eolian/database_validate.c
index 41ac2a206e..6b1058d5d1 100644
--- a/src/lib/eolian/database_validate.c
+++ b/src/lib/eolian/database_validate.c
@@ -308,6 +308,9 @@ _validate_param(const Eolian_Unit *src, Eolian_Function_Parameter *param)
if (!_validate_type(src, param->type))
return EINA_FALSE;
+ if (param->value && !_validate_expr(src, param->value, param->type, 0))
+ return EINA_FALSE;
+
if (!_validate_doc(src, param->doc))
return EINA_FALSE;