aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/symbols_cache.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/libserver/symbols_cache.c
parentce9a26d98932473c449e5d4bf39dbb93a6d7a924 (diff)
downloadrspamd-6e00dea760aca106de1021e5a9740b9511a6e0b2.tar.gz
rspamd-6e00dea760aca106de1021e5a9740b9511a6e0b2.zip
Refactor and unify function names.
Diffstat (limited to 'src/libserver/symbols_cache.c')
-rw-r--r--src/libserver/symbols_cache.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index 25bccc6e9..be7ef98d9 100644
--- a/src/libserver/symbols_cache.c
+++ b/src/libserver/symbols_cache.c
@@ -306,7 +306,7 @@ rspamd_symbols_cache_save_items (struct symbols_cache *cache, const gchar *name)
}
void
-register_symbol_common (struct symbols_cache *cache,
+rspamd_symbols_cache_add_symbol (struct symbols_cache *cache,
const gchar *name,
double weight,
gint priority,
@@ -352,10 +352,10 @@ register_symbol_common (struct symbols_cache *cache,
}
void
-register_symbol (struct symbols_cache *cache, const gchar *name, double weight,
+rspamd_symbols_cache_add_symbol_normal (struct symbols_cache *cache, const gchar *name, double weight,
symbol_func_t func, gpointer user_data)
{
- register_symbol_common (cache,
+ rspamd_symbols_cache_add_symbol (cache,
name,
weight,
0,
@@ -365,11 +365,11 @@ register_symbol (struct symbols_cache *cache, const gchar *name, double weight,
}
void
-register_virtual_symbol (struct symbols_cache *cache,
+rspamd_symbols_cache_add_symbol_virtual (struct symbols_cache *cache,
const gchar *name,
double weight)
{
- register_symbol_common (cache,
+ rspamd_symbols_cache_add_symbol (cache,
name,
weight,
0,
@@ -379,13 +379,13 @@ register_virtual_symbol (struct symbols_cache *cache,
}
void
-register_callback_symbol (struct symbols_cache *cache,
+rspamd_symbols_cache_add_symbol_callback (struct symbols_cache *cache,
const gchar *name,
double weight,
symbol_func_t func,
gpointer user_data)
{
- register_symbol_common (cache,
+ rspamd_symbols_cache_add_symbol (cache,
name,
weight,
0,
@@ -395,14 +395,14 @@ register_callback_symbol (struct symbols_cache *cache,
}
void
-register_callback_symbol_priority (struct symbols_cache *cache,
+rspamd_symbols_cache_add_symbol_callback_prio (struct symbols_cache *cache,
const gchar *name,
double weight,
gint priority,
symbol_func_t func,
gpointer user_data)
{
- register_symbol_common (cache,
+ rspamd_symbols_cache_add_symbol (cache,
name,
weight,
priority,
@@ -448,7 +448,7 @@ rspamd_symbols_cache_new (void)
}
gboolean
-init_symbols_cache (struct symbols_cache* cache,
+rspamd_symbols_cache_init (struct symbols_cache* cache,
struct rspamd_config *cfg)
{
gboolean res;
@@ -563,7 +563,7 @@ rspamd_symbols_cache_metric_validate_cb (gpointer k, gpointer v, gpointer ud)
}
gboolean
-validate_cache (struct symbols_cache *cache,
+rspamd_symbols_cache_validate (struct symbols_cache *cache,
struct rspamd_config *cfg,
gboolean strict)
{
@@ -611,7 +611,7 @@ validate_cache (struct symbols_cache *cache,
}
gboolean
-call_symbol_callback (struct rspamd_task * task,
+rspamd_symbols_cache_process_symbol (struct rspamd_task * task,
struct symbols_cache * cache,
gpointer *save)
{