From 4f7d3205f502db5942ae18732f7aa634a72d72b2 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 25 Feb 2012 06:13:18 +1000 Subject: Partial rewrite of the luaproc messages. Still not fixed yet. --- LuaSL/src/LuaSL.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'LuaSL/src/LuaSL.h') diff --git a/LuaSL/src/LuaSL.h b/LuaSL/src/LuaSL.h index 936477f..057788b 100644 --- a/LuaSL/src/LuaSL.h +++ b/LuaSL/src/LuaSL.h @@ -19,7 +19,8 @@ #include #include -typedef struct _script script; // Define this here, so LuaSL_threads.h can use it. +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" @@ -56,7 +57,7 @@ typedef enum } boolean; #endif -typedef struct +struct _gameGlobals { Ecore_Evas *ee; // Our window. Evas *canvas; // The canvas for drawing directly onto. @@ -68,7 +69,7 @@ typedef struct const char *address; int port; boolean ui; // Wether we actually start up the UI. -} gameGlobals; +}; struct _script { @@ -84,12 +85,14 @@ struct _script int status; int args; channel chan; + Eina_Clist messages; Ecore_Con_Client *client; Ecore_Timer *timer; }; typedef struct { + Eina_Clist node; script *script; const char message[PATH_MAX]; } scriptMessage; -- cgit v1.1