summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore/ecore_main.c
diff options
context:
space:
mode:
authorMike McCormack <mikem@ring3k.org>2011-12-11 08:29:35 +0000
committerMike McCormack <mikem@ring3k.org>2011-12-11 08:29:35 +0000
commit844431ed06e2e654e9ff61b85225362568369487 (patch)
tree5b96b54febf62cf2186c15035fb7a38b4bf16015 /legacy/ecore/src/lib/ecore/ecore_main.c
parent6b02bb3d772773f97348eb101705c14e03c4ed22 (diff)
ecore: Fix modularity
This also fixes the glib build. Signed-off-by: Mike McCormack <mikem@ring3k.org> SVN revision: 66091
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore/ecore_main.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore/ecore_main.c b/legacy/ecore/src/lib/ecore/ecore_main.c
index 23e670c3bd..76aced6dd1 100644
--- a/legacy/ecore/src/lib/ecore/ecore_main.c
+++ b/legacy/ecore/src/lib/ecore/ecore_main.c
@@ -145,6 +145,44 @@ timerfd_settime(int fd __UNUSED__,
145 145
146#define NS_PER_SEC (1000.0 * 1000.0 * 1000.0) 146#define NS_PER_SEC (1000.0 * 1000.0 * 1000.0)
147 147
148struct _Ecore_Fd_Handler
149{
150 EINA_INLIST;
151 ECORE_MAGIC;
152 Ecore_Fd_Handler *next_ready;
153 int fd;
154 Ecore_Fd_Handler_Flags flags;
155 Ecore_Fd_Cb func;
156 void *data;
157 Ecore_Fd_Cb buf_func;
158 void *buf_data;
159 Ecore_Fd_Prep_Cb prep_func;
160 void *prep_data;
161 int references;
162 Eina_Bool read_active : 1;
163 Eina_Bool write_active : 1;
164 Eina_Bool error_active : 1;
165 Eina_Bool delete_me : 1;
166#if defined(USE_G_MAIN_LOOP)
167 GPollFD gfd;
168#endif
169};
170GENERIC_ALLOC_SIZE_DECLARE(Ecore_Fd_Handler);
171
172#ifdef _WIN32
173struct _Ecore_Win32_Handler
174{
175 EINA_INLIST;
176 ECORE_MAGIC;
177 HANDLE h;
178 Ecore_Win32_Handle_Cb func;
179 void *data;
180 int references;
181 Eina_Bool delete_me : 1;
182};
183GENERIC_ALLOC_SIZE_DECLARE(Ecore_Win32_Handler);
184#endif
185
148#ifndef USE_G_MAIN_LOOP 186#ifndef USE_G_MAIN_LOOP
149static int _ecore_main_select(double timeout); 187static int _ecore_main_select(double timeout);
150#endif 188#endif