aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/re_cache.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-08 17:22:54 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-08 17:22:54 +0000
commit0715410482a188b01b0085a1165caf6e645ebbe4 (patch)
tree52043168be236d6e3c470feddf4241ac9a2d89e8 /src/libserver/re_cache.h
parent83deb3e1dd871c984cc4bac4529d8db55202e7d5 (diff)
downloadrspamd-0715410482a188b01b0085a1165caf6e645ebbe4.tar.gz
rspamd-0715410482a188b01b0085a1165caf6e645ebbe4.zip
Add function to load hyperscan databases from caches
Diffstat (limited to 'src/libserver/re_cache.h')
-rw-r--r--src/libserver/re_cache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/re_cache.h b/src/libserver/re_cache.h
index 934cc1485..310056515 100644
--- a/src/libserver/re_cache.h
+++ b/src/libserver/re_cache.h
@@ -139,4 +139,10 @@ gint rspamd_re_cache_compile_hyperscan (struct rspamd_re_cache *cache,
*/
gboolean rspamd_re_cache_is_valid_hyperscan_file (struct rspamd_re_cache *cache,
const char *path);
+
+/**
+ * Loads all hyperscan regexps precompiled
+ */
+gboolean rspamd_re_cache_load_hyperscan (struct rspamd_re_cache *cache,
+ const char *cache_dir);
#endif