elua lib: API rename
authorDaniel Kolesa <d.kolesa@samsung.com>
Tue, 14 Apr 2015 13:14:50 +0000 (14:14 +0100)
committerDaniel Kolesa <d.kolesa@osg.samsung.com>
Wed, 6 May 2015 14:05:20 +0000 (15:05 +0100)
src/lib/elua/Elua.h
src/lib/elua/cache.c
src/lib/elua/elua.c

index 8d00e67..1d45e1c 100644 (file)
@@ -66,7 +66,7 @@ EAPI int elua_init(void);
 EAPI int elua_shutdown(void);
 
 EAPI Elua_State *elua_state_new(const char *progname);
-EAPI Elua_State *elua_state_from_lua_get(lua_State *L);
+EAPI Elua_State *elua_state_from_lua_state_get(lua_State *L);
 
 EAPI void elua_state_free(Elua_State *es);
 
index ae5cf93..43ef3d7 100644 (file)
@@ -190,7 +190,7 @@ elua_io_loadfile(const Elua_State *es, const char *fname)
 static int
 loadfile(lua_State *L)
 {
-   Elua_State *es = elua_state_from_lua_get(L);
+   Elua_State *es = elua_state_from_lua_state_get(L);
    const char *fname = luaL_optstring(L, 1, NULL);
    int status = elua_io_loadfile(es, fname),
        hasenv = (lua_gettop(L) >= 3);
index 0207681..229eb65 100644 (file)
@@ -216,7 +216,7 @@ elua_state_lua_state_get(const Elua_State *es)
 }
 
 EAPI Elua_State *
-elua_state_from_lua_get(lua_State *L)
+elua_state_from_lua_state_get(lua_State *L)
 {
    EINA_SAFETY_ON_NULL_RETURN_VAL(L, NULL);
    lua_getfield(L, LUA_REGISTRYINDEX, "elua_ptr");
@@ -339,7 +339,7 @@ elua_state_modules_setup(const Elua_State *es)
 EAPI int
 elua_module_init(lua_State *L)
 {
-   Elua_State *es = elua_state_from_lua_get(L);
+   Elua_State *es = elua_state_from_lua_state_get(L);
    if (!lua_isnoneornil(L, 1))
      {
         lua_pushvalue(L, 1);
@@ -357,7 +357,7 @@ elua_module_init(lua_State *L)
 EAPI int
 elua_module_system_init(lua_State *L)
 {
-   Elua_State       *es       = elua_state_from_lua_get(L);
+   Elua_State       *es       = elua_state_from_lua_state_get(L);
    const char       *corepath = es->coredir;
    const char       *modpath  = es->moddir;
    const char       *appspath = es->appsdir;