|
|
@@ -67,7 +67,7 @@ gboolean init_symbols_cache (struct symbols_cache* cache, |
|
|
|
* @param func pointer to handler |
|
|
|
* @param user_data pointer to user_data |
|
|
|
*/ |
|
|
|
void register_symbol (struct symbols_cache **cache, |
|
|
|
void register_symbol (struct symbols_cache *cache, |
|
|
|
const gchar *name, |
|
|
|
double weight, |
|
|
|
symbol_func_t func, |
|
|
@@ -78,7 +78,7 @@ void register_symbol (struct symbols_cache **cache, |
|
|
|
* Register virtual symbol |
|
|
|
* @param name name of symbol |
|
|
|
*/ |
|
|
|
void register_virtual_symbol (struct symbols_cache **cache, |
|
|
|
void register_virtual_symbol (struct symbols_cache *cache, |
|
|
|
const gchar *name, |
|
|
|
double weight); |
|
|
|
|
|
|
@@ -88,7 +88,7 @@ void register_virtual_symbol (struct symbols_cache **cache, |
|
|
|
* @param func pointer to handler |
|
|
|
* @param user_data pointer to user_data |
|
|
|
*/ |
|
|
|
void register_callback_symbol (struct symbols_cache **cache, |
|
|
|
void register_callback_symbol (struct symbols_cache *cache, |
|
|
|
const gchar *name, |
|
|
|
double weight, |
|
|
|
symbol_func_t func, |
|
|
@@ -100,27 +100,13 @@ void register_callback_symbol (struct symbols_cache **cache, |
|
|
|
* @param func pointer to handler |
|
|
|
* @param user_data pointer to user_data |
|
|
|
*/ |
|
|
|
void register_callback_symbol_priority (struct symbols_cache **cache, |
|
|
|
void register_callback_symbol_priority (struct symbols_cache *cache, |
|
|
|
const gchar *name, |
|
|
|
double weight, |
|
|
|
gint priority, |
|
|
|
symbol_func_t func, |
|
|
|
gpointer user_data); |
|
|
|
|
|
|
|
/** |
|
|
|
* Register function for dynamic symbols parsing |
|
|
|
* @param name name of symbol |
|
|
|
* @param func pointer to handler |
|
|
|
* @param user_data pointer to user_data |
|
|
|
*/ |
|
|
|
void register_dynamic_symbol (rspamd_mempool_t *pool, |
|
|
|
struct symbols_cache **cache, |
|
|
|
const gchar *name, |
|
|
|
double weight, |
|
|
|
symbol_func_t func, |
|
|
|
gpointer user_data, |
|
|
|
GList *networks); |
|
|
|
|
|
|
|
/** |
|
|
|
* Generic function to register a symbol |
|
|
|
* @param cache |
|
|
@@ -132,7 +118,7 @@ void register_dynamic_symbol (rspamd_mempool_t *pool, |
|
|
|
* @param type |
|
|
|
*/ |
|
|
|
void |
|
|
|
register_symbol_common (struct symbols_cache **cache, |
|
|
|
register_symbol_common (struct symbols_cache *cache, |
|
|
|
const gchar *name, |
|
|
|
double weight, |
|
|
|
gint priority, |