diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-06 13:59:07 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-03-06 13:59:07 +0000 |
commit | 9bc218c25f142a973206869d57275f3cae9a2184 (patch) | |
tree | 10f4a2abcba2f89dba64b8e2d4d39b84f0c6b79a /src/libutil/regexp.h | |
parent | 453645aa3766bd1e5df8d9bb076f78bf3604e1d8 (diff) | |
download | rspamd-9bc218c25f142a973206869d57275f3cae9a2184.tar.gz rspamd-9bc218c25f142a973206869d57275f3cae9a2184.zip |
Implement lua regexp split, write test case.
Diffstat (limited to 'src/libutil/regexp.h')
-rw-r--r-- | src/libutil/regexp.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/regexp.h b/src/libutil/regexp.h index 6e8aa7295..41835af84 100644 --- a/src/libutil/regexp.h +++ b/src/libutil/regexp.h @@ -112,6 +112,15 @@ rspamd_regexp_t* rspamd_regexp_cache_create (struct rspamd_regexp_cache *cache, const gchar *flags, GError **err); /** + * Remove regexp from the cache + * @param cache regexp cache. if NULL, the superglobal cache is used (*not* thread-safe) + * @param re re to remove + * @return TRUE if a regexp has been removed + */ +gboolean rspamd_regexp_cache_remove (struct rspamd_regexp_cache *cache, + rspamd_regexp_t *re); + +/** * Destroy regexp cache and unref all elements inside it * @param cache */ |