summaryrefslogtreecommitdiff
path: root/src/lib/elua/elua.c
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-04-16 16:30:05 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:21 +0100
commit7cb8d13980150e8a2f99377b8f2987b3c7aa9ff7 (patch)
tree99741a9067b86204bd06554a1e8ff1178035015c /src/lib/elua/elua.c
parent145cd1a615b6060805a5ce2aa197b77b523c1e5b (diff)
elua lib: hide some APIs that should not be public
Diffstat (limited to '')
-rw-r--r--src/lib/elua/elua.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c
index d60f1a3963..488438ab0d 100644
--- a/src/lib/elua/elua.c
+++ b/src/lib/elua/elua.c
@@ -292,11 +292,14 @@ elua_state_i18n_setup(const Elua_State *es)
292 return EINA_TRUE; 292 return EINA_TRUE;
293} 293}
294 294
295int _elua_module_init(lua_State *L);
296int _elua_module_system_init(lua_State *L);
297
295const luaL_reg _elua_cutillib[] = 298const luaL_reg _elua_cutillib[] =
296{ 299{
297 { "init_module", elua_module_init }, 300 { "init_module", _elua_module_init },
298 { "popenv" , elua_io_popen }, 301 { "popenv" , _elua_io_popen },
299 { NULL , NULL } 302 { NULL , NULL }
300}; 303};
301 304
302EAPI Eina_Bool 305EAPI Eina_Bool
@@ -310,15 +313,15 @@ elua_state_modules_setup(const Elua_State *es)
310 snprintf(buf, sizeof(buf), "%s/module.lua", es->coredir); 313 snprintf(buf, sizeof(buf), "%s/module.lua", es->coredir);
311 if (elua_util_error_report(es, es->progname, elua_io_loadfile(es, buf))) 314 if (elua_util_error_report(es, es->progname, elua_io_loadfile(es, buf)))
312 return EINA_FALSE; 315 return EINA_FALSE;
313 lua_pushcfunction(es->luastate, elua_module_system_init); 316 lua_pushcfunction(es->luastate, _elua_module_system_init);
314 lua_createtable(es->luastate, 0, 0); 317 lua_createtable(es->luastate, 0, 0);
315 luaL_register(es->luastate, NULL, _elua_cutillib); 318 luaL_register(es->luastate, NULL, _elua_cutillib);
316 lua_call(es->luastate, 2, 0); 319 lua_call(es->luastate, 2, 0);
317 return EINA_TRUE; 320 return EINA_TRUE;
318} 321}
319 322
320EAPI int 323int
321elua_module_init(lua_State *L) 324_elua_module_init(lua_State *L)
322{ 325{
323 Elua_State *es = elua_state_from_lua_state_get(L); 326 Elua_State *es = elua_state_from_lua_state_get(L);
324 if (!lua_isnoneornil(L, 1)) 327 if (!lua_isnoneornil(L, 1))
@@ -335,8 +338,8 @@ elua_module_init(lua_State *L)
335 return 0; 338 return 0;
336} 339}
337 340
338EAPI int 341int
339elua_module_system_init(lua_State *L) 342_elua_module_system_init(lua_State *L)
340{ 343{
341 Elua_State *es = elua_state_from_lua_state_get(L); 344 Elua_State *es = elua_state_from_lua_state_get(L);
342 const char *corepath = es->coredir; 345 const char *corepath = es->coredir;