summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/ecore/ecore_main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index 932744ba9e..4b7c93d79c 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -2867,6 +2867,16 @@ _efl_loop_quit(Eo *obj EINA_UNUSED, Efl_Loop_Data *pd EINA_UNUSED, Eina_Value ex
2867 _ecore_exit_code = exit_code; 2867 _ecore_exit_code = exit_code;
2868} 2868}
2869 2869
2870EAPI void
2871efl_exit(int exit_code)
2872{
2873 Eina_Value v = EINA_VALUE_EMPTY;
2874
2875 eina_value_setup(&v, EINA_VALUE_TYPE_INT);
2876 eina_value_set(&v, &exit_code);
2877 efl_loop_quit(ecore_main_loop_get(), v);
2878}
2879
2870EOLIAN static Efl_Object * 2880EOLIAN static Efl_Object *
2871_efl_loop_efl_object_provider_find(Eo *obj, Efl_Loop_Data *pd, const Efl_Object *klass) 2881_efl_loop_efl_object_provider_find(Eo *obj, Efl_Loop_Data *pd, const Efl_Object *klass)
2872{ 2882{