summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_mvvm_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/efl/interfaces/efl_mvvm_common.c')
-rw-r--r--src/lib/efl/interfaces/efl_mvvm_common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_mvvm_common.c b/src/lib/efl/interfaces/efl_mvvm_common.c
index 2c95c76..2fb9118 100644
--- a/src/lib/efl/interfaces/efl_mvvm_common.c
+++ b/src/lib/efl/interfaces/efl_mvvm_common.c
@@ -15,6 +15,7 @@ EAPI Eina_Error EFL_MODEL_ERROR_INCORRECT_VALUE = 0;
15EAPI Eina_Error EFL_MODEL_ERROR_INVALID_OBJECT = 0; 15EAPI Eina_Error EFL_MODEL_ERROR_INVALID_OBJECT = 0;
16 16
17EAPI Eina_Error EFL_FACTORY_ERROR_NOT_SUPPORTED = 0; 17EAPI Eina_Error EFL_FACTORY_ERROR_NOT_SUPPORTED = 0;
18EAPI Eina_Error EFL_PROPERTY_ERROR_INVALID_KEY = 0;
18 19
19static const char EFL_MODEL_ERROR_UNKNOWN_STR[] = "Unknown Error"; 20static const char EFL_MODEL_ERROR_UNKNOWN_STR[] = "Unknown Error";
20static const char EFL_MODEL_ERROR_NOT_SUPPORTED_STR[] = "Operation not supported"; 21static const char EFL_MODEL_ERROR_NOT_SUPPORTED_STR[] = "Operation not supported";
@@ -27,6 +28,9 @@ static const char EFL_MODEL_ERROR_INVALID_OBJECT_STR[] = "Object is invalid";
27 28
28static const char EFL_FACTORY_ERROR_NOT_SUPPORTED_STR[] = "Operation not supported"; 29static const char EFL_FACTORY_ERROR_NOT_SUPPORTED_STR[] = "Operation not supported";
29 30
31static const char EFL_PROPERTY_ERROR_INVALID_KEY_STR[] = "Incorrect key provided";
32
33
30EAPI int 34EAPI int
31efl_model_init(void) 35efl_model_init(void)
32{ 36{
@@ -44,6 +48,10 @@ efl_model_init(void)
44#define _ERROR(Name) EFL_FACTORY_ERROR_##Name = eina_error_msg_static_register(EFL_FACTORY_ERROR_##Name##_STR); 48#define _ERROR(Name) EFL_FACTORY_ERROR_##Name = eina_error_msg_static_register(EFL_FACTORY_ERROR_##Name##_STR);
45 _ERROR(NOT_SUPPORTED); 49 _ERROR(NOT_SUPPORTED);
46 50
51#undef _ERROR
52#define _ERROR(Name) EFL_PROPERTY_ERROR_##Name = eina_error_msg_static_register(EFL_PROPERTY_ERROR_##Name##_STR);
53 _ERROR(INVALID_KEY);
54
47 return EINA_TRUE; 55 return EINA_TRUE;
48} 56}
49 57