cfg->min_word_len = DEFAULT_MIN_WORD;
cfg->max_word_len = DEFAULT_MAX_WORD;
- cfg->lua_state = rspamd_lua_init (cfg);
+ cfg->lua_state = rspamd_lua_init ();
cfg->cache = rspamd_symbols_cache_new (cfg);
cfg->ups_ctx = rspamd_upstreams_library_init ();
cfg->re_cache = rspamd_re_cache_new ();
}
lua_State *
-rspamd_lua_init (struct rspamd_config *cfg)
+rspamd_lua_init ()
{
lua_State *L;
struct lua_locked_state *new;
new = g_slice_alloc (sizeof (struct lua_locked_state));
- new->L = rspamd_lua_init (cfg);
+ new->L = rspamd_lua_init ();
new->m = rspamd_mutex_new ();
return new;
/**
* Initialize lua and bindings
*/
-lua_State * rspamd_lua_init (struct rspamd_config *cfg);
+lua_State *rspamd_lua_init (void);
/**
* Load and initialize lua plugins
void
rspamd_lua_test_func (void)
{
- lua_State *L = rspamd_lua_init (NULL);
+ lua_State *L = rspamd_lua_init ();
gchar *rp, rp_buf[PATH_MAX], path_buf[PATH_MAX], *tmp, *dir, *pattern;
const gchar *old_path;
glob_t globbuf;