summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2009-09-08 05:39:09 +0000
committerVincent Torri <vincent.torri@gmail.com>2009-09-08 05:39:09 +0000
commitdf88395e4f2208befde6c1b922b41816cfafd86a (patch)
treeeb4a3a64bce38ba4a8b8e8f15d4b5b1c1ffed3f3 /legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
parent073dd0542cbe07cc2856e43ef24d510283ca6b7b (diff)
* fix logging for Windows XP and CE port
by adding namespace to logging macros * formatting and warning cleanup SVN revision: 42341
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c38
1 files changed, 22 insertions, 16 deletions
diff --git a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
index bc9c420125..52ee583f43 100644
--- a/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
+++ b/legacy/ecore/src/lib/ecore_evas/ecore_evas_wince.c
@@ -23,6 +23,13 @@
23 23
24#ifdef BUILD_ECORE_EVAS_SOFTWARE_16_WINCE 24#ifdef BUILD_ECORE_EVAS_SOFTWARE_16_WINCE
25 25
26/* logging messages macros */
27int _ecore_evas_log_dom = -1;
28
29#define ECORE_EVAS_MSG_ERR(...) EINA_LOG_DOM_ERR(_ecore_evas_log_dom , __VA_ARGS__)
30#define ECORE_EVAS_MSG_DBG(...) EINA_LOG_DOM_DBG(_ecore_evas_log_dom , __VA_ARGS__)
31#define ECORE_EVAS_MSG_INFO(...) EINA_LOG_DOM_INFO(_ecore_evas_log_dom , __VA_ARGS__)
32
26#define ECORE_EVAS_EVENT_COUNT 7 33#define ECORE_EVAS_EVENT_COUNT 7
27 34
28static int _ecore_evas_init_count = 0; 35static int _ecore_evas_init_count = 0;
@@ -31,7 +38,6 @@ static int _ecore_evas_fps_debug = 0;
31static Ecore_Event_Handler *ecore_evas_event_handlers[ECORE_EVAS_EVENT_COUNT]; 38static Ecore_Event_Handler *ecore_evas_event_handlers[ECORE_EVAS_EVENT_COUNT];
32static Ecore_Idle_Enterer *ecore_evas_idle_enterer = NULL; 39static Ecore_Idle_Enterer *ecore_evas_idle_enterer = NULL;
33static Ecore_Evas *ecore_evases = NULL; 40static Ecore_Evas *ecore_evases = NULL;
34static Eina_Hash *ecore_evases_hash = NULL;
35 41
36static int _ecore_evas_wince_event_mouse_in(void *data __UNUSED__, int type __UNUSED__, void *event); 42static int _ecore_evas_wince_event_mouse_in(void *data __UNUSED__, int type __UNUSED__, void *event);
37 43
@@ -167,7 +173,7 @@ _ecore_evas_wince_event_mouse_in(void *data __UNUSED__, int type __UNUSED__, voi
167 Ecore_Evas *ee; 173 Ecore_Evas *ee;
168 Ecore_WinCE_Event_Mouse_In *e; 174 Ecore_WinCE_Event_Mouse_In *e;
169 175
170 EINA_ERROR_PINFO("mouse in\n"); 176 ECORE_EVAS_MSG_INFO("mouse in\n");
171 177
172 e = event; 178 e = event;
173 ee = ecore_event_window_match((Ecore_Window)e->window); 179 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -189,7 +195,7 @@ _ecore_evas_wince_event_mouse_out(void *data __UNUSED__, int type __UNUSED__, vo
189 Ecore_Evas *ee; 195 Ecore_Evas *ee;
190 Ecore_WinCE_Event_Mouse_Out *e; 196 Ecore_WinCE_Event_Mouse_Out *e;
191 197
192 EINA_ERROR_PINFO("mouse out\n"); 198 ECORE_EVAS_MSG_INFO("mouse out\n");
193 199
194 e = event; 200 e = event;
195 ee = ecore_event_window_match((Ecore_Window)e->window); 201 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -213,7 +219,7 @@ _ecore_evas_wince_event_window_damage(void *data __UNUSED__, int type __UNUSED__
213 Ecore_Evas *ee; 219 Ecore_Evas *ee;
214 Ecore_WinCE_Event_Window_Damage *e; 220 Ecore_WinCE_Event_Window_Damage *e;
215 221
216 EINA_ERROR_PINFO("window damage\n"); 222 ECORE_EVAS_MSG_INFO("window damage\n");
217 223
218 e = event; 224 e = event;
219 ee = ecore_event_window_match((Ecore_Window)e->window); 225 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -261,7 +267,7 @@ _ecore_evas_wince_event_window_destroy(void *data __UNUSED__, int type __UNUSED_
261 Ecore_Evas *ee; 267 Ecore_Evas *ee;
262 Ecore_WinCE_Event_Window_Destroy *e; 268 Ecore_WinCE_Event_Window_Destroy *e;
263 269
264 EINA_ERROR_PINFO("window destroy\n"); 270 ECORE_EVAS_MSG_INFO("window destroy\n");
265 271
266 e = event; 272 e = event;
267 ee = ecore_event_window_match((Ecore_Window)e->window); 273 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -279,7 +285,7 @@ _ecore_evas_wince_event_window_show(void *data __UNUSED__, int type __UNUSED__,
279 Ecore_Evas *ee; 285 Ecore_Evas *ee;
280 Ecore_WinCE_Event_Window_Show *e; 286 Ecore_WinCE_Event_Window_Show *e;
281 287
282 EINA_ERROR_PINFO("window show\n"); 288 ECORE_EVAS_MSG_INFO("window show\n");
283 289
284 e = event; 290 e = event;
285 ee = ecore_event_window_match((Ecore_Window)e->window); 291 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -298,7 +304,7 @@ _ecore_evas_wince_event_window_hide(void *data __UNUSED__, int type __UNUSED__,
298 Ecore_Evas *ee; 304 Ecore_Evas *ee;
299 Ecore_WinCE_Event_Window_Hide *e; 305 Ecore_WinCE_Event_Window_Hide *e;
300 306
301 EINA_ERROR_PINFO("window hide\n"); 307 ECORE_EVAS_MSG_INFO("window hide\n");
302 308
303 e = event; 309 e = event;
304 ee = ecore_event_window_match((Ecore_Window)e->window); 310 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -317,7 +323,7 @@ _ecore_evas_wince_event_window_delete_request(void *data __UNUSED__, int type __
317 Ecore_Evas *ee; 323 Ecore_Evas *ee;
318 Ecore_WinCE_Event_Window_Delete_Request *e; 324 Ecore_WinCE_Event_Window_Delete_Request *e;
319 325
320 EINA_ERROR_PINFO("window delete request\n"); 326 ECORE_EVAS_MSG_INFO("window delete request\n");
321 327
322 e = event; 328 e = event;
323 ee = ecore_event_window_match((Ecore_Window)e->window); 329 ee = ecore_event_window_match((Ecore_Window)e->window);
@@ -334,7 +340,7 @@ _ecore_evas_wince_event_window_delete_request(void *data __UNUSED__, int type __
334static void 340static void
335_ecore_evas_wince_free(Ecore_Evas *ee) 341_ecore_evas_wince_free(Ecore_Evas *ee)
336{ 342{
337 EINA_ERROR_PINFO("ecore evas free\n"); 343 ECORE_EVAS_MSG_INFO("ecore evas free\n");
338 344
339 ecore_wince_window_free((Ecore_WinCE_Window *)ee->prop.window); 345 ecore_wince_window_free((Ecore_WinCE_Window *)ee->prop.window);
340 ecore_event_window_unregister(ee->prop.window); 346 ecore_event_window_unregister(ee->prop.window);
@@ -353,7 +359,7 @@ _ecore_evas_wince_callback_delete_request_set(Ecore_Evas *ee,
353static void 359static void
354_ecore_evas_wince_move(Ecore_Evas *ee, int x, int y) 360_ecore_evas_wince_move(Ecore_Evas *ee, int x, int y)
355{ 361{
356 EINA_ERROR_PINFO("ecore evas move (%dx%d)\n", x, y); 362 ECORE_EVAS_MSG_INFO("ecore evas move (%dx%d)\n", x, y);
357 363
358 if ((x != ee->x) || (y != ee->y)) 364 if ((x != ee->x) || (y != ee->y))
359 { 365 {
@@ -367,7 +373,7 @@ _ecore_evas_wince_move(Ecore_Evas *ee, int x, int y)
367static void 373static void
368_ecore_evas_wince_resize(Ecore_Evas *ee, int width, int height) 374_ecore_evas_wince_resize(Ecore_Evas *ee, int width, int height)
369{ 375{
370 EINA_ERROR_PINFO("ecore evas resize (%dx%d)\n", width, height); 376 ECORE_EVAS_MSG_INFO("ecore evas resize (%dx%d)\n", width, height);
371 377
372 if ((ee->w != width) || (ee->h != height)) 378 if ((ee->w != width) || (ee->h != height))
373 { 379 {
@@ -393,7 +399,7 @@ _ecore_evas_wince_resize(Ecore_Evas *ee, int width, int height)
393static void 399static void
394_ecore_evas_wince_move_resize(Ecore_Evas *ee, int x, int y, int width, int height) 400_ecore_evas_wince_move_resize(Ecore_Evas *ee, int x, int y, int width, int height)
395{ 401{
396 EINA_ERROR_PINFO("ecore evas resize (%dx%d %dx%d)\n", x, y, width, height); 402 ECORE_EVAS_MSG_INFO("ecore evas resize (%dx%d %dx%d)\n", x, y, width, height);
397 403
398 if ((ee->w != width) || (ee->h != height) || (x != ee->x) || (y != ee->y)) 404 if ((ee->w != width) || (ee->h != height) || (x != ee->x) || (y != ee->y))
399 { 405 {
@@ -505,7 +511,7 @@ _ecore_evas_wince_move_resize(Ecore_Evas *ee, int x, int y, int width, int heigh
505static void 511static void
506_ecore_evas_wince_show(Ecore_Evas *ee) 512_ecore_evas_wince_show(Ecore_Evas *ee)
507{ 513{
508 EINA_ERROR_PINFO("ecore evas show\n"); 514 ECORE_EVAS_MSG_INFO("ecore evas show\n");
509 515
510 ee->should_be_visible = 1; 516 ee->should_be_visible = 1;
511 if (ee->prop.avoid_damage) 517 if (ee->prop.avoid_damage)
@@ -518,7 +524,7 @@ _ecore_evas_wince_show(Ecore_Evas *ee)
518static void 524static void
519_ecore_evas_wince_hide(Ecore_Evas *ee) 525_ecore_evas_wince_hide(Ecore_Evas *ee)
520{ 526{
521 EINA_ERROR_PINFO("ecore evas hide\n"); 527 ECORE_EVAS_MSG_INFO("ecore evas hide\n");
522 528
523 ecore_wince_window_hide((Ecore_WinCE_Window *)ee->prop.window); 529 ecore_wince_window_hide((Ecore_WinCE_Window *)ee->prop.window);
524 ee->should_be_visible = 0; 530 ee->should_be_visible = 0;
@@ -545,7 +551,7 @@ _ecore_evas_wince_hide(Ecore_Evas *ee)
545static void 551static void
546_ecore_evas_wince_title_set(Ecore_Evas *ee, const char *title) 552_ecore_evas_wince_title_set(Ecore_Evas *ee, const char *title)
547{ 553{
548 EINA_ERROR_PINFO("ecore evas title set\n"); 554 ECORE_EVAS_MSG_INFO("ecore evas title set\n");
549 555
550 if (ee->prop.title) free(ee->prop.title); 556 if (ee->prop.title) free(ee->prop.title);
551 ee->prop.title = NULL; 557 ee->prop.title = NULL;
@@ -663,7 +669,7 @@ _ecore_evas_wince_fullscreen_set(Ecore_Evas *ee, int on)
663 Evas_Engine_Info_Software_16_WinCE *einfo; 669 Evas_Engine_Info_Software_16_WinCE *einfo;
664 struct _Ecore_WinCE_Window *window; 670 struct _Ecore_WinCE_Window *window;
665 671
666 EINA_ERROR_PINFO("ecore evas fullscreen set\n"); 672 ECORE_EVAS_MSG_INFO("ecore evas fullscreen set\n");
667 673
668 if ((ee->engine.wince.state.fullscreen && on) || 674 if ((ee->engine.wince.state.fullscreen && on) ||
669 (!ee->engine.wince.state.fullscreen && !on)) 675 (!ee->engine.wince.state.fullscreen && !on))