summaryrefslogtreecommitdiff
path: root/src/lib/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2015-04-09 14:37:12 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:19 +0100
commitad999df598680c43c492d5db776a6eeb50e45ec3 (patch)
treeb46b258d2552aec56959e7e41fc159cb61373447 /src/lib/elua
parent1bc0bd1aa7941d8dceb42868b3b21df2ed65181c (diff)
elua lib: make Elua_State fields private (opaque pointers)
Diffstat (limited to 'src/lib/elua')
-rw-r--r--src/lib/elua/Elua.h8
-rw-r--r--src/lib/elua/elua_private.h8
2 files changed, 9 insertions, 7 deletions
diff --git a/src/lib/elua/Elua.h b/src/lib/elua/Elua.h
index 8681d0b9e6..0b452cf210 100644
--- a/src/lib/elua/Elua.h
+++ b/src/lib/elua/Elua.h
@@ -60,13 +60,7 @@ extern "C" {
60#include <lualib.h> 60#include <lualib.h>
61#include <lauxlib.h> 61#include <lauxlib.h>
62 62
63typedef struct _Elua_State 63typedef struct _Elua_State Elua_State;
64{
65 lua_State *luastate;
66 Eina_Stringshare *coredir;
67 Eina_Stringshare *moddir;
68 Eina_Stringshare *appsdir;
69} Elua_State;
70 64
71EAPI int elua_init(void); 65EAPI int elua_init(void);
72EAPI int elua_shutdown(void); 66EAPI int elua_shutdown(void);
diff --git a/src/lib/elua/elua_private.h b/src/lib/elua/elua_private.h
index 0e1e9be515..5c634880e8 100644
--- a/src/lib/elua/elua_private.h
+++ b/src/lib/elua/elua_private.h
@@ -27,6 +27,14 @@
27#include <lualib.h> 27#include <lualib.h>
28#include <lauxlib.h> 28#include <lauxlib.h>
29 29
30struct _Elua_State
31{
32 lua_State *luastate;
33 Eina_Stringshare *coredir;
34 Eina_Stringshare *moddir;
35 Eina_Stringshare *appsdir;
36};
37
30extern int _elua_log_dom; 38extern int _elua_log_dom;
31 39
32#define DBG(...) EINA_LOG_DOM_DBG(_elua_log_dom, __VA_ARGS__) 40#define DBG(...) EINA_LOG_DOM_DBG(_elua_log_dom, __VA_ARGS__)