From db634cda56ca8eca2ddab728d1a95dc9fbd36eba Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 25 Feb 2012 01:36:02 +1000 Subject: Remove a whole bunch of stuff we don't need from our luaproc fork, and rearrange what's left. --- LuaSL/src/LuaSL.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'LuaSL/src/LuaSL.h') diff --git a/LuaSL/src/LuaSL.h b/LuaSL/src/LuaSL.h index d27f501..68deec5 100644 --- a/LuaSL/src/LuaSL.h +++ b/LuaSL/src/LuaSL.h @@ -14,6 +14,14 @@ #include #include +#include +#include +#include +#include + +#include "LuaSL_threads.h" + + #define WIDTH (1024) #define HEIGHT (768) @@ -62,17 +70,26 @@ typedef struct typedef struct { + Eina_Clist node; + gameGlobals *game; char SID[PATH_MAX]; char fileName[PATH_MAX]; + lua_State *lstate; struct timeval startTime; float compileTime, timerTime; int bugs, warnings; boolean running; - gameGlobals *game; Ecore_Con_Client *client; Ecore_Timer *timer; } script; +//struct stluaproc { +// int stat; +// int args; +// channel chan; +// void *data; +//}; + typedef struct { script *script; @@ -82,6 +99,7 @@ typedef struct void loggingStartup(gameGlobals *game); char *getDateTime(struct tm **nowOut, char *dateOut, time_t *tiemOut); +void scriptSendBack(void * data); void sendBack(gameGlobals *game, Ecore_Con_Client *client, const char *SID, const char *message, ...); void sendForth(gameGlobals *game, const char *SID, const char *message, ...); float timeDiff(struct timeval *now, struct timeval *then); -- cgit v1.1