summaryrefslogtreecommitdiff
path: root/src/lib/elua/elua.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2015-04-09 14:17:38 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:19 +0100
commit19bb7eb4608c30733f92a655d758dbfa525cf1f8 (patch)
tree4498854a3cb7c3bfa8788d912c20a9cf1da86c2f /src/lib/elua/elua.c
parentf17e8025b8cbf36b4cf125ac32ed89c0f17627a3 (diff)
elua lib: new APIs to retrieve dirs
Diffstat (limited to '')
-rw-r--r--src/lib/elua/elua.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c
index e5a8387ff2..7382bdeff5 100644
--- a/src/lib/elua/elua.c
+++ b/src/lib/elua/elua.c
@@ -98,6 +98,27 @@ elua_state_dirs_set(Elua_State *es, const char *core, const char *mods,
98 if (apps) es->appsdir = eina_stringshare_add(apps); 98 if (apps) es->appsdir = eina_stringshare_add(apps);
99} 99}
100 100
101EAPI Eina_Stringshare *
102elua_state_core_dir_get(Elua_State *es)
103{
104 EINA_SAFETY_ON_NULL_RETURN_VAL(es, NULL);
105 return es->coredir;
106}
107
108EAPI Eina_Stringshare *
109elua_state_mod_dir_get(Elua_State *es)
110{
111 EINA_SAFETY_ON_NULL_RETURN_VAL(es, NULL);
112 return es->moddir;
113}
114
115EAPI Eina_Stringshare *
116elua_state_apps_dir_get(Elua_State *es)
117{
118 EINA_SAFETY_ON_NULL_RETURN_VAL(es, NULL);
119 return es->moddir;
120}
121
101EAPI Elua_State * 122EAPI Elua_State *
102elua_state_from_lua_get(lua_State *L) 123elua_state_from_lua_get(lua_State *L)
103{ 124{