summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_general.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_general.h')
-rw-r--r--src/lib/elementary/elm_general.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_general.h b/src/lib/elementary/elm_general.h
index 4259bea16c..2ef86cfaa1 100644
--- a/src/lib/elementary/elm_general.h
+++ b/src/lib/elementary/elm_general.h
@@ -110,12 +110,32 @@ extern EAPI double _elm_startup_time;
110 110
111#ifndef ELM_LIB_QUICKLAUNCH 111#ifndef ELM_LIB_QUICKLAUNCH
112#define EFL_MAIN() int main(int argc, char **argv) { int ret__; _EFL_APP_VERSION_SET(); _elm_startup_time = ecore_time_unix_get(); elm_init(argc, argv); efl_event_callback_add(ecore_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS, efl_main, NULL); ret__ = efl_loop_begin(ecore_main_loop_get()); elm_shutdown(); return ret__; } 112#define EFL_MAIN() int main(int argc, char **argv) { int ret__; _EFL_APP_VERSION_SET(); _elm_startup_time = ecore_time_unix_get(); elm_init(argc, argv); efl_event_callback_add(ecore_main_loop_get(), EFL_LOOP_EVENT_ARGUMENTS, efl_main, NULL); ret__ = efl_loop_begin(ecore_main_loop_get()); elm_shutdown(); return ret__; }
113
114#define EFL_MAIN_EX() \
115 EFL_CALLBACKS_ARRAY_DEFINE(_efl_main_ex, \
116 { EFL_LOOP_EVENT_ARGUMENTS, efl_main }, \
117 { EFL_LOOP_EVENT_PAUSE, efl_pause }, \
118 { EFL_LOOP_EVENT_RESUME, efl_resume }, \
119 { EFL_EVENT_DEL, efl_terminate }); \
120 int main(int argc, char **argv) \
121 { \
122 int ret__; \
123 _EFL_APP_VERSION_SET(); \
124 _elm_startup_time = ecore_time_unix_get(); \
125 elm_init(argc, argv); \
126 efl_event_callback_array_add(ecore_main_loop_get(), _efl_main_ex(), NULL); \
127 ret__ = efl_loop_begin(ecore_main_loop_get()); \
128 elm_shutdown(); \
129 return ret__; \
130 }
131
113#else 132#else
114/** @deprecated macro to be used after the elm_main() function. 133/** @deprecated macro to be used after the elm_main() function.
115 * Do not define ELM_LIB_QUICKLAUNCH 134 * Do not define ELM_LIB_QUICKLAUNCH
116 * Compile your programs with -fpie and -pie -rdynamic instead, to generate a single binary (linkable executable). 135 * Compile your programs with -fpie and -pie -rdynamic instead, to generate a single binary (linkable executable).
117 */ 136 */
118#define EFL_MAIN() int main(int argc, char **argv) { int ret__; _EFL_APP_VERSION_SET(); _elm_startup_time = ecore_time_unix_get(); ret__ = efl_quicklaunch_fallback(argc, argv); elm_shutdown(); return ret__; } 137#define EFL_MAIN() int main(int argc, char **argv) { int ret__; _EFL_APP_VERSION_SET(); _elm_startup_time = ecore_time_unix_get(); ret__ = efl_quicklaunch_fallback(argc, argv); elm_shutdown(); return ret__; (void) efl_main(NULL, NULL); return 0; }
138#define EFL_MAIN_EX() int main(int argc, char **argv) { int ret__; _EFL_APP_VERSION_SET(); _elm_startup_time = ecore_time_unix_get(); ret__ = efl_quicklaunch_fallback(argc, argv); elm_shutdown(); return ret__; (void) efl_main(NULL, NULL); (void) efl_pause(NULL, NULL); (void) efl_resume(NULL, NULL); (void) efl_terminate(NULL, NULL); return 0; }
119#endif 139#endif
120 140
121#endif /* EFL_BETA_API_SUPPORT */ 141#endif /* EFL_BETA_API_SUPPORT */