diff options
author | David Walter Seikel | 2014-05-05 18:33:27 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-05-05 18:33:27 +1000 |
commit | 0407fdd77eaafa13a45b9724471ce85c1dd08116 (patch) | |
tree | 25d3797d705ec2c8f76c9ce3b28916effe50c7e6 /src/GuiLua/GuiLua.h | |
parent | GuiLua handles multiple windows now. (diff) | |
download | SledjHamr-0407fdd77eaafa13a45b9724471ce85c1dd08116.zip SledjHamr-0407fdd77eaafa13a45b9724471ce85c1dd08116.tar.gz SledjHamr-0407fdd77eaafa13a45b9724471ce85c1dd08116.tar.bz2 SledjHamr-0407fdd77eaafa13a45b9724471ce85c1dd08116.tar.xz |
GuiLuaDo() now returns astructure, and has that structure in Lua's C registry. Now we can have lots of them.
Diffstat (limited to 'src/GuiLua/GuiLua.h')
-rw-r--r-- | src/GuiLua/GuiLua.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/GuiLua/GuiLua.h b/src/GuiLua/GuiLua.h index a4a1273..fd766e6 100644 --- a/src/GuiLua/GuiLua.h +++ b/src/GuiLua/GuiLua.h | |||
@@ -13,4 +13,15 @@ | |||
13 | #define THINGASM "thingasm" | 13 | #define THINGASM "thingasm" |
14 | 14 | ||
15 | 15 | ||
16 | void GuiLuaDo(int argc, char **argv, Eina_Bool mainloop); | 16 | typedef struct _GuiLua |
17 | { | ||
18 | lua_State *L; | ||
19 | winFang *parent; // Our parent window, if it exists. | ||
20 | Eina_Clist winFangs; // The windows we might open. | ||
21 | |||
22 | Eina_Clist node; | ||
23 | void *data; | ||
24 | Evas_Smart_Cb on_del; | ||
25 | } GuiLua; | ||
26 | |||
27 | GuiLua *GuiLuaDo(int argc, char **argv, winFang *parent); | ||