diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-15 19:48:21 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-15 19:48:21 +0300 |
commit | 21596f21a35a4d0e110c04824dcda5ef37450003 (patch) | |
tree | 2228e8678b8f72d07b5f84b3efbc3d20cda6c5fc /src/expressions.h | |
parent | 17a938b2aeffb3448c8d61f3d8dd7d012eb910cc (diff) | |
download | rspamd-21596f21a35a4d0e110c04824dcda5ef37450003.tar.gz rspamd-21596f21a35a4d0e110c04824dcda5ef37450003.zip |
* Add new lua module regexp for using glib regular expressions (pcre compatible)
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 |