diff options
Diffstat (limited to 'src/expressions.h')
-rw-r--r-- | src/expressions.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/expressions.h b/src/expressions.h index 6a25dd9e1..0c1576b36 100644 --- a/src/expressions.h +++ b/src/expressions.h @@ -88,14 +88,20 @@ void register_expression_function (const gchar *name, rspamd_internal_func_t fun * @param line symbolic representation * @param pointer regexp data */ -void re_cache_add (gchar *line, void *pointer, memory_pool_t *pool); +void re_cache_add (const gchar *line, void *pointer, memory_pool_t *pool); /** * Check regexp in cache * @param line symbolic representation * @return pointer to regexp data or NULL if regexp is not found */ -void * re_cache_check (const gchar *line, memory_pool_t *pool); +void * re_cache_check (const const gchar *line, memory_pool_t *pool); + +/** + * Remove regexp from regexp cache + * @param line symbolic representation + */ +void re_cache_del (const gchar *line, memory_pool_t *pool); /** * Add regexp to regexp task cache |