aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_config.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-27 17:33:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-27 17:33:56 +0100
commit6e00dea760aca106de1021e5a9740b9511a6e0b2 (patch)
treedc5f5a67564d419f67ae03e63db45c8b81b822be /src/lua/lua_config.c
parentce9a26d98932473c449e5d4bf39dbb93a6d7a924 (diff)
downloadrspamd-6e00dea760aca106de1021e5a9740b9511a6e0b2.tar.gz
rspamd-6e00dea760aca106de1021e5a9740b9511a6e0b2.zip
Refactor and unify function names.
Diffstat (limited to 'src/lua/lua_config.c')
-rw-r--r--src/lua/lua_config.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index cb12c970b..247805f98 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -867,7 +867,7 @@ rspamd_register_symbol_fromlua (lua_State *L,
cd->L = L;
cd->symbol = rspamd_mempool_strdup (cfg->cfg_pool, name);
- register_symbol_common (cfg->cache,
+ rspamd_symbols_cache_add_symbol (cfg->cache,
name,
weight,
priority,
@@ -957,7 +957,7 @@ lua_config_register_symbols (lua_State *L)
lua_pushvalue (L, -2);
sym = rspamd_mempool_strdup (cfg->cfg_pool,
luaL_checkstring (L, -2));
- register_virtual_symbol (cfg->cache, sym, weight);
+ rspamd_symbols_cache_add_symbol_virtual (cfg->cache, sym, weight);
lua_pop (L, 2);
}
lua_pop (L, 1);
@@ -965,7 +965,7 @@ lua_config_register_symbols (lua_State *L)
else if (lua_type (L, i) == LUA_TSTRING) {
sym = rspamd_mempool_strdup (cfg->cfg_pool,
luaL_checkstring (L, i));
- register_virtual_symbol (cfg->cache, sym, weight);
+ rspamd_symbols_cache_add_symbol_virtual (cfg->cache, sym, weight);
}
}
}
@@ -984,7 +984,7 @@ lua_config_register_virtual_symbol (lua_State * L)
name = rspamd_mempool_strdup (cfg->cfg_pool, luaL_checkstring (L, 2));
weight = luaL_checknumber (L, 3);
if (name) {
- register_virtual_symbol (cfg->cache, name, weight);
+ rspamd_symbols_cache_add_symbol_virtual (cfg->cache, name, weight);
}
}
return 0;
@@ -1157,7 +1157,7 @@ lua_config_add_composite (lua_State * L)
composite);
if (new) {
- register_virtual_symbol (cfg->cache, name, 1);
+ rspamd_symbols_cache_add_symbol_virtual (cfg->cache, name, 1);
}
ret = TRUE;