forked from enlightenment/efl
ecore_con: add support for EFL_MAIN with ecore_con support.
This commit is contained in:
parent
bd83a76393
commit
fee2b1beb4
|
@ -10,6 +10,7 @@
|
|||
#undef __EFL_MAIN_CONSTRUCTOR
|
||||
#undef __EFL_MAIN_DESTRUCTOR
|
||||
#undef __EFL_UI
|
||||
#undef __EFL_NET
|
||||
#undef EFL_MAIN
|
||||
#undef EFL_MAIN_EX
|
||||
|
||||
|
@ -38,10 +39,14 @@
|
|||
#endif
|
||||
|
||||
#define __EFL_MAIN_CONSTRUCTOR \
|
||||
__EFL_NET(ecore_con_init();) \
|
||||
__EFL_NET(ecore_con_url_init();) \
|
||||
__EFL_UI(elm_init(argc, argv);)
|
||||
|
||||
#define __EFL_MAIN_DESTRUCTOR \
|
||||
__EFL_UI(elm_shutdown();)
|
||||
__EFL_UI(elm_shutdown();) \
|
||||
__EFL_NET(ecore_con_url_shutdown();) \
|
||||
__EFL_NET(ecore_con_shutdown();)
|
||||
|
||||
#ifdef __EFL_UI_IS_REQUIRED
|
||||
# define __EFL_UI(...) __VA_ARGS__
|
||||
|
@ -49,6 +54,12 @@
|
|||
# define __EFL_UI(...)
|
||||
#endif
|
||||
|
||||
#ifdef __EFL_NET_IS_REQUIRED
|
||||
# define __EFL_NET(...) __VA_ARGS__
|
||||
#else
|
||||
# define __EFL_NET(...)
|
||||
#endif
|
||||
|
||||
#define _EFL_APP_VERSION_SET() \
|
||||
do { \
|
||||
if (efl_build_version_set) \
|
||||
|
|
|
@ -8,6 +8,9 @@
|
|||
#else
|
||||
# include <netdb.h>
|
||||
#endif
|
||||
|
||||
#define __EFL_NET_IS_REQUIRED
|
||||
|
||||
#include <Efl_Core.h>
|
||||
|
||||
#ifdef EAPI
|
||||
|
|
Loading…
Reference in New Issue