aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-18 16:32:26 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-18 16:40:48 +0100
commit37f250e80e9e9aee06e4a333b4f8a0ab6d8a3aba (patch)
tree7a5e42407744295be5a279e1845def3e60a27cf0 /src/lua/lua_common.h
parent61b2a08f5de3d72ee84dddb8d3ee23b66c821380 (diff)
downloadrspamd-37f250e80e9e9aee06e4a333b4f8a0ab6d8a3aba.tar.gz
rspamd-37f250e80e9e9aee06e4a333b4f8a0ab6d8a3aba.zip
[Rework] Propagate ucl variables from the command line
Diffstat (limited to 'src/lua/lua_common.h')
-rw-r--r--src/lua/lua_common.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h
index a4d212fc5..82957d3a1 100644
--- a/src/lua/lua_common.h
+++ b/src/lua/lua_common.h
@@ -163,7 +163,8 @@ lua_State *rspamd_lua_init (void);
* Load and initialize lua plugins
*/
gboolean
-rspamd_init_lua_filters (struct rspamd_config *cfg, gboolean force_load);
+rspamd_init_lua_filters (struct rspamd_config *cfg, gboolean force_load,
+ GHashTable *vars);
/**
* Initialize new locked lua_State structure
@@ -279,7 +280,8 @@ gboolean rspamd_lua_check_condition (struct rspamd_config *cfg,
void rspamd_lua_dumpstack (lua_State *L);
/* Set lua path according to the configuration */
-void rspamd_lua_set_path (lua_State *L, struct rspamd_config *cfg);
+void rspamd_lua_set_path (lua_State *L, struct rspamd_config *cfg,
+ 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);