diff options
author | meir@redislabs.com <meir@redislabs.com> | 2021-10-06 09:36:37 +0300 |
---|---|---|
committer | meir <meir@redis.com> | 2021-12-01 23:57:06 +0200 |
commit | f21dc38a6ed3851a5e6501199e803ff0b93795cf (patch) | |
tree | 34932a7a0a751a0ccee12b23a3f7154f21e3bc26 /src/script_lua.h | |
parent | fc731bc67f8ecd07e83aa138b03a073028f9f3f2 (diff) | |
download | redis-f21dc38a6ed3851a5e6501199e803ff0b93795cf.tar.gz |
Redis Functions - Moved invoke Lua code functionality to script_lua.c
The functionality was moved to script_lua.c under
callFunction function. Its purpose is to call the Lua
function already located on the top of the Lua stack.
Used the new function on eval.c to invoke Lua code.
The function will also be used to invoke Lua
code on the Lua engine.
Diffstat (limited to 'src/script_lua.h')
-rw-r--r-- | src/script_lua.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/script_lua.h b/src/script_lua.h index 5ae9225bc..c18ad40bd 100644 --- a/src/script_lua.h +++ b/src/script_lua.h @@ -58,12 +58,9 @@ void luaRegisterRedisAPI(lua_State* lua); void luaEnableGlobalsProtection(lua_State *lua); -void luaSetGlobalArray(lua_State *lua, char *var, robj **elev, int elec); -void luaMaskCountHook(lua_State *lua, lua_Debug *ar); -void luaReplyToRedisReply(client *c, client* script_client, lua_State *lua); void luaSaveOnRegistry(lua_State* lua, const char* name, void* ptr); void* luaGetFromRegistry(lua_State* lua, const char* name); - +void luaCallFunction(scriptRunCtx* r_ctx, lua_State *lua, robj** keys, size_t nkeys, robj** args, size_t nargs, int debug_enabled); #endif /* __SCRIPT_LUA_H_ */ |