X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/179e54d2a9c6545d6f102bf9a3f9506175639743..2fd7c9efdedd81cfa2909ebbcdb30eb9b58d7094:/src/redis.h diff --git a/src/redis.h b/src/redis.h index 5a3d1a9c..bd4ef5a1 100644 --- a/src/redis.h +++ b/src/redis.h @@ -717,6 +717,7 @@ struct redisServer { int lua_timedout; /* True if we reached the time limit for script execution. */ int lua_kill; /* Kill the script if true. */ + int lua_protect_globals; /* If true globals must be declared */ /* Assert & bug reportign */ char *assert_failed; char *assert_file; @@ -1102,6 +1103,8 @@ void clusterPropagatePublish(robj *channel, robj *message); /* Scripting */ void scriptingInit(void); +void scriptingEnableGlobalsProtection(lua_State *lua); +void scriptingDisableGlobalsProtection(lua_State *lua); /* Git SHA1 */ char *redisGitSHA1(void);