summaryrefslogtreecommitdiff
path: root/src/lib/elementary
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2017-10-27 15:39:34 -0700
committerCedric Bail <cedric@osg.samsung.com>2017-10-27 15:39:34 -0700
commite361189e27e2570b752044f626ed1d302c59dd91 (patch)
treee97c987c8d17e989cb1ecfd5789f3bd958c517b3 /src/lib/elementary
parent4054c35f0674d0c851ddc84f8a0d239c27ccd095 (diff)
elementary: make the exit helper work with int (This is just for C).
Diffstat (limited to 'src/lib/elementary')
-rw-r--r--src/lib/elementary/elm_general.h2
-rw-r--r--src/lib/elementary/elm_main.c8
2 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/elementary/elm_general.h b/src/lib/elementary/elm_general.h
index d46d094244..9317dbe0dc 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;
156 * 156 *
157 * @ingroup Efl_Loop 157 * @ingroup Efl_Loop
158 */ 158 */
159EAPI void efl_exit(unsigned char exit_code); 159EAPI void efl_exit(int exit_code);
160 160
161#endif /* EFL_BETA_API_SUPPORT */ 161#endif /* EFL_BETA_API_SUPPORT */
162 162
diff --git a/src/lib/elementary/elm_main.c b/src/lib/elementary/elm_main.c
index 90647b30aa..cfa6ef84f5 100644
--- a/src/lib/elementary/elm_main.c
+++ b/src/lib/elementary/elm_main.c
@@ -1362,9 +1362,13 @@ elm_run(void)
1362} 1362}
1363 1363
1364EAPI void 1364EAPI void
1365efl_exit(unsigned char exit_code) 1365efl_exit(int exit_code)
1366{ 1366{
1367 efl_loop_quit(ecore_main_loop_get(), exit_code); 1367 Eina_Value v = EINA_VALUE_EMPTY;
1368
1369 eina_value_setup(&v, EINA_VALUE_TYPE_INT);
1370 eina_value_set(&v, &exit_code);
1371 efl_loop_quit(ecore_main_loop_get(), v);
1368 1372
1369 if (elm_policy_get(ELM_POLICY_EXIT) == ELM_POLICY_EXIT_WINDOWS_DEL) 1373 if (elm_policy_get(ELM_POLICY_EXIT) == ELM_POLICY_EXIT_WINDOWS_DEL)
1370 { 1374 {