diff options
Diffstat (limited to '')
-rw-r--r-- | LuaSL/src/LuaSL.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL.h b/LuaSL/src/LuaSL.h new file mode 100644 index 0000000..af87de5 --- /dev/null +++ b/LuaSL/src/LuaSL.h | |||
@@ -0,0 +1,64 @@ | |||
1 | //#include <Elementary.h> | ||
2 | #ifdef HAVE_CONFIG_H | ||
3 | #include "config.h" | ||
4 | #else | ||
5 | #define PACKAGE_EXAMPLES_DIR "." | ||
6 | #define __UNUSED__ | ||
7 | #endif | ||
8 | |||
9 | #include <Eet.h> | ||
10 | #include <Ecore.h> | ||
11 | #include <Ecore_Evas.h> | ||
12 | #include <Ecore_File.h> | ||
13 | #include <Edje.h> | ||
14 | #include <stdio.h> | ||
15 | #include <ctype.h> | ||
16 | |||
17 | #define WIDTH (1024) | ||
18 | #define HEIGHT (768) | ||
19 | |||
20 | #define PC(...) EINA_LOG_DOM_CRIT(game->logDom, __VA_ARGS__) | ||
21 | #define PE(...) EINA_LOG_DOM_ERR(game->logDom, __VA_ARGS__) | ||
22 | #define PW(...) EINA_LOG_DOM_WARN(game->logDom, __VA_ARGS__) | ||
23 | #define PD(...) EINA_LOG_DOM_DBG(game->logDom, __VA_ARGS__) | ||
24 | #define PI(...) EINA_LOG_DOM_INFO(game->logDom, __VA_ARGS__) | ||
25 | |||
26 | #define PCm(...) EINA_LOG_DOM_CRIT(game.logDom, __VA_ARGS__) | ||
27 | #define PEm(...) EINA_LOG_DOM_ERR(game.logDom, __VA_ARGS__) | ||
28 | #define PWm(...) EINA_LOG_DOM_WARN(game.logDom, __VA_ARGS__) | ||
29 | #define PDm(...) EINA_LOG_DOM_DBG(game.logDom, __VA_ARGS__) | ||
30 | #define PIm(...) EINA_LOG_DOM_INFO(game.logDom, __VA_ARGS__) | ||
31 | |||
32 | #define D() PD("DEBUG") | ||
33 | |||
34 | // "01:03:52 01-01-1973\n\0" | ||
35 | #define DATE_TIME_LEN 21 | ||
36 | |||
37 | #define TABLE_WIDTH 7 | ||
38 | #define TABLE_HEIGHT 42 | ||
39 | |||
40 | #ifndef FALSE | ||
41 | // NEVER change this | ||
42 | typedef enum | ||
43 | { | ||
44 | FALSE = 0, | ||
45 | TRUE = 1 | ||
46 | } boolean; | ||
47 | #endif | ||
48 | |||
49 | typedef struct | ||
50 | { | ||
51 | Ecore_Evas *ee; // Our window. | ||
52 | Evas *canvas; // The canvas for drawing directly onto. | ||
53 | Evas_Object *bg; // Our background edje, also the game specific stuff. | ||
54 | Evas_Object *edje; // The edje of the background. | ||
55 | int logDom; | ||
56 | } gameGlobals; | ||
57 | |||
58 | typedef void (*doSomething) (gameGlobals *game, unsigned char key); | ||
59 | |||
60 | void loggingStartup(gameGlobals *game); | ||
61 | char *getDateTime(struct tm **nowOut, char *dateOut, time_t *tiemOut); | ||
62 | float timeDiff(struct timeval *now, struct timeval *then); | ||
63 | |||
64 | |||