diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-05-13 17:07:20 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-05-13 17:07:20 +0400 |
commit | 2a45f0daa25c66db449741d9c93a7ea6ef868729 (patch) | |
tree | 1140aa892fec576561e614fd10337720ce03a298 /src/expressions.h | |
parent | d85518101f1b1363ee965c2b4af595e379f89afe (diff) | |
download | rspamd-2a45f0daa25c66db449741d9c93a7ea6ef868729.tar.gz rspamd-2a45f0daa25c66db449741d9c93a7ea6ef868729.zip |
* Fix config reloading
* Add ability to register variables in memory pools (hash with known lifetime)
* Avoid of using of some global variables
Diffstat (limited to 'src/expressions.h')
-rw-r--r-- | src/expressions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expressions.h b/src/expressions.h index 519efc6da..14ae03f4f 100644 --- a/src/expressions.h +++ b/src/expressions.h @@ -87,14 +87,14 @@ void register_expression_function (const char *name, rspamd_internal_func_t func * @param line symbolic representation * @param pointer regexp data */ -void re_cache_add (char *line, void *pointer); +void re_cache_add (char *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 char *line); +void * re_cache_check (const char *line, memory_pool_t *pool); /** * Add regexp to regexp task cache |