summaryrefslogtreecommitdiff
path: root/src/lib/eolian/database_function_parameter_api.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2017-01-13 15:15:10 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2017-01-13 15:26:05 +0100
commita70645e154950140c8d3883a5bc99d3d259ff32a (patch)
tree0fb6b2d213a246579621093b03a5bab0c0225860 /src/lib/eolian/database_function_parameter_api.c
parent70ad68bfc76f897b89c8db19652aa9c6607d3eb0 (diff)
eolian: consistent and cleaner error values from APIs
Now all error/unknown/etc values returned from APIs are zero, previously it was a mix of zeroes and minus ones. Also, some enums that had no error/invalid value before have one now, which allows for better distinction between what is an error and what is an intended result.
Diffstat (limited to 'src/lib/eolian/database_function_parameter_api.c')
-rw-r--r--src/lib/eolian/database_function_parameter_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian/database_function_parameter_api.c b/src/lib/eolian/database_function_parameter_api.c
index 4835d0915e..34100efbbe 100644
--- a/src/lib/eolian/database_function_parameter_api.c
+++ b/src/lib/eolian/database_function_parameter_api.c
@@ -8,7 +8,7 @@
8EAPI Eolian_Parameter_Dir 8EAPI Eolian_Parameter_Dir
9eolian_parameter_direction_get(const Eolian_Function_Parameter *param) 9eolian_parameter_direction_get(const Eolian_Function_Parameter *param)
10{ 10{
11 EINA_SAFETY_ON_NULL_RETURN_VAL(param, EOLIAN_IN_PARAM); 11 EINA_SAFETY_ON_NULL_RETURN_VAL(param, EOLIAN_UNKNOWN_PARAM);
12 return param->param_dir; 12 return param->param_dir;
13} 13}
14 14