aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-26 19:31:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-26 19:31:29 +0100
commit4734176fe1719865d3222aebd6bf3c294349226e (patch)
treeb36f9246764092a0e24dfe71df7b6b5546515536 /src/lua/lua_common.h
parent582e212af4385fdaeb2e209fde6cb5a795a29a3a (diff)
downloadrspamd-4734176fe1719865d3222aebd6bf3c294349226e.tar.gz
rspamd-4734176fe1719865d3222aebd6bf3c294349226e.zip
[Minor] Move lua globals setup to a more appropriate place
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r--src/lua/lua_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index 457f470e9..b4a241412 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -298,6 +298,10 @@ void rspamd_lua_dumpstack (lua_State *L);
void rspamd_lua_set_path (lua_State *L, const ucl_object_t *cfg_obj,
GHashTable *vars);
+/* Set some lua globals */
+void rspamd_lua_set_globals (struct rspamd_config *cfg, lua_State *L,
+ GHashTable *vars);
+
struct memory_pool_s * rspamd_lua_check_mempool (lua_State * L, gint pos);
struct rspamd_config * lua_check_config (lua_State * L, gint pos);
struct rspamd_async_session* lua_check_session (lua_State * L, gint pos);