From f97c73bd1e43a0eb32ad8dc43fc28f6e40b28f38 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 23 May 2014 13:22:36 +1000 Subject: Rewrite the LuaSL script running stuff (twice lol), plus much related tweakage and cleanups. --- src/LuaSL/LuaSL.h | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) (limited to 'src/LuaSL/LuaSL.h') diff --git a/src/LuaSL/LuaSL.h b/src/LuaSL/LuaSL.h index 299477b..cfee0aa 100644 --- a/src/LuaSL/LuaSL.h +++ b/src/LuaSL/LuaSL.h @@ -16,46 +16,19 @@ #include #include -typedef struct _script script; // Define this here, so LuaSL_threads.h can use it. typedef struct _gameGlobals gameGlobals; // Define this here, so LuaSL_threads.h can use it. -#include "LuaSL_threads.h" #include "LumbrJack.h" +#include "Runnr.h" struct _gameGlobals { Ecore_Con_Server *server; - Eina_Hash *scripts, *names; + Eina_Hash *names; const char *address; int port; }; -struct _script -{ - Eina_Clist node; - gameGlobals *game; - char SID[PATH_MAX]; - char fileName[PATH_MAX]; - char *name; - lua_State *L; - struct timeval startTime; - float timerTime; - int status; - int args; - Eina_Clist messages; - Ecore_Con_Client *client; - Ecore_Timer *timer; -}; - -typedef struct -{ - Eina_Clist node; - script *script; - const char message[PATH_MAX]; -} scriptMessage; - - -void scriptSendBack(void * data); #include "LuaSL_LSL_tree.h" -- cgit v1.1