From: Cedric Bail Date: Fri, 27 Oct 2017 22:39:34 +0000 (-0700) Subject: elementary: make the exit helper work with int (This is just for C). X-Git-Tag: submit/sandbox/upgrade/efl120/20180319.053334~1994 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e361189e27e2570b752044f626ed1d302c59dd91;p=platform%2Fupstream%2Fefl.git elementary: make the exit helper work with int (This is just for C). --- diff --git a/src/lib/elementary/elm_general.h b/src/lib/elementary/elm_general.h index d46d094..9317dbe 100644 --- a/src/lib/elementary/elm_general.h +++ b/src/lib/elementary/elm_general.h @@ -156,7 +156,7 @@ extern EAPI double _elm_startup_time; * * @ingroup Efl_Loop */ -EAPI void efl_exit(unsigned char exit_code); +EAPI void efl_exit(int exit_code); #endif /* EFL_BETA_API_SUPPORT */ diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c index 90647b3..cfa6ef8 100644 --- a/src/lib/elementary/elm_main.c +++ b/src/lib/elementary/elm_main.c @@ -1362,9 +1362,13 @@ elm_run(void) } EAPI void -efl_exit(unsigned char exit_code) +efl_exit(int exit_code) { - efl_loop_quit(ecore_main_loop_get(), exit_code); + Eina_Value v = EINA_VALUE_EMPTY; + + eina_value_setup(&v, EINA_VALUE_TYPE_INT); + eina_value_set(&v, &exit_code); + efl_loop_quit(ecore_main_loop_get(), v); if (elm_policy_get(ELM_POLICY_EXIT) == ELM_POLICY_EXIT_WINDOWS_DEL) {