aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/re_cache.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-15 14:35:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-15 14:35:33 +0100
commit8faa65961ae7dae4e0782f1cccf05630d4f8750a (patch)
tree9b4b5228356d8ececa590c68fd659fd8ba5fa3eb /src/libserver/re_cache.h
parent4e3cace514317d2535a7b811ecb9b4d962502d48 (diff)
downloadrspamd-8faa65961ae7dae4e0782f1cccf05630d4f8750a.tar.gz
rspamd-8faa65961ae7dae4e0782f1cccf05630d4f8750a.zip
[Project] Implement selectors registration for regular expressions
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 90acd1501..c14b29ef0 100644
--- a/src/libserver/re_cache.h
+++ b/src/libserver/re_cache.h
@@ -171,4 +171,10 @@ gboolean rspamd_re_cache_is_valid_hyperscan_file (struct rspamd_re_cache *cache,
*/
gboolean rspamd_re_cache_load_hyperscan (struct rspamd_re_cache *cache,
const char *cache_dir);
+
+/**
+ * Registers lua selector in the cache
+ */
+void rspamd_re_cache_add_selector (struct rspamd_re_cache *cache,
+ const gchar *sname, gint ref);
#endif