change global variable position
[framework/uifw/cbhm.git] / src / common.h
1 #ifndef _common_h_
2 #define _common_h_
3
4 #include <stdio.h>
5 #include <stdlib.h>
6 #include <string.h>
7 #include <unistd.h>
8 #include <time.h>
9 #include <sys/time.h>
10
11 #include <Elementary.h>
12 #include <Ecore_X.h>
13 #include <utilX.h>
14 //#include <appcore-efl.h>
15
16 #ifndef _EDJ
17 #define _EDJ(ly) elm_layout_edje_get(ly)
18 #endif
19
20 #define DEBUG 
21
22 #ifdef DEBUG
23 #define DTRACE(fmt, args...) \
24 {do { fprintf(stderr, "[CBHM][%s:%04d] " fmt, __func__,__LINE__, ##args); } while (0); }
25 #define DTIME(fmt, args...)                                                                                                             \
26 {do { struct timeval tv1; gettimeofday(&tv1, NULL); double t1=tv1.tv_sec+(tv1.tv_usec/1000000.0); fprintf(stderr, "[CBHM][time=%lf:%s:%04d] " fmt, t1, __func__, __LINE__, ##args); } while (0); }
27 #else
28 #define DTRACE(fmt, args...) 
29 #define DTIME(fmt, args...) 
30 #endif
31
32 struct appdata;
33
34 #define HISTORY_QUEUE_ITEM_SIZE (512 * 1024) // 5Kilo 
35 #define HISTORY_QUEUE_MAX_ITEMS 12
36
37 #endif // _common_h_