summaryrefslogtreecommitdiff
path: root/src/lib/elua
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2015-04-09 14:34:21 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:19 +0100
commitb563ae007e6c46569e35848bdc1ff2a1898c5390 (patch)
tree944a72e8dbd91e6ecc9817b5ae7de88fe877bb20 /src/lib/elua
parent51a5d09018b554530031c8ee0556aef7e289e260 (diff)
elua lib: add elua_state_lua_state_get
Diffstat (limited to 'src/lib/elua')
-rw-r--r--src/lib/elua/Elua.h2
-rw-r--r--src/lib/elua/elua.c7
2 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/elua/Elua.h b/src/lib/elua/Elua.h
index 5c960fd39f..8681d0b9e6 100644
--- a/src/lib/elua/Elua.h
+++ b/src/lib/elua/Elua.h
@@ -83,6 +83,8 @@ EAPI Eina_Stringshare *elua_state_core_dir_get(const Elua_State *es);
83EAPI Eina_Stringshare *elua_state_mod_dir_get(const Elua_State *es); 83EAPI Eina_Stringshare *elua_state_mod_dir_get(const Elua_State *es);
84EAPI Eina_Stringshare *elua_state_apps_dir_get(const Elua_State *es); 84EAPI Eina_Stringshare *elua_state_apps_dir_get(const Elua_State *es);
85 85
86EAPI lua_State *elua_state_lua_state_get(const Elua_State *es);
87
86EAPI int elua_report_error(const Elua_State *es, const char *pname, int status); 88EAPI int elua_report_error(const Elua_State *es, const char *pname, int status);
87 89
88EAPI void elua_state_setup_i18n(const Elua_State *es); 90EAPI void elua_state_setup_i18n(const Elua_State *es);
diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c
index 2a31eae647..f14dc2997c 100644
--- a/src/lib/elua/elua.c
+++ b/src/lib/elua/elua.c
@@ -119,6 +119,13 @@ elua_state_apps_dir_get(const Elua_State *es)
119 return es->moddir; 119 return es->moddir;
120} 120}
121 121
122EAPI lua_State *
123elua_state_lua_state_get(const Elua_State *es)
124{
125 EINA_SAFETY_ON_NULL_RETURN_VAL(es, NULL);
126 return es->luastate;
127}
128
122EAPI Elua_State * 129EAPI Elua_State *
123elua_state_from_lua_get(lua_State *L) 130elua_state_from_lua_get(lua_State *L)
124{ 131{