aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/re_cache.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-15 12:38:45 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-15 12:38:45 +0100
commitfed99b23a32982fd55195c926a12250d530320c7 (patch)
tree016c94c6c84ccc678595c4e77240230a19b6d673 /src/libserver/re_cache.h
parent61a241b92c80b4fad9bbba4b1c8cd14f07d5fd2c (diff)
downloadrspamd-fed99b23a32982fd55195c926a12250d530320c7.tar.gz
rspamd-fed99b23a32982fd55195c926a12250d530320c7.zip
[Project] Add initial support for selectors in regexps
Diffstat (limited to 'src/libserver/re_cache.h')
-rw-r--r--src/libserver/re_cache.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libserver/re_cache.h b/src/libserver/re_cache.h
index a138bcb4b..90acd1501 100644
--- a/src/libserver/re_cache.h
+++ b/src/libserver/re_cache.h
@@ -35,6 +35,7 @@ enum rspamd_re_type {
RSPAMD_RE_BODY, /* full in SA */
RSPAMD_RE_SABODY, /* body in SA */
RSPAMD_RE_SARAWBODY, /* rawbody in SA */
+ RSPAMD_RE_SELECTOR, /* use lua selector to process regexp */
RSPAMD_RE_MAX
};
@@ -61,8 +62,9 @@ struct rspamd_re_cache *rspamd_re_cache_new (void);
* @param datalen associated data length
*/
rspamd_regexp_t *
- rspamd_re_cache_add (struct rspamd_re_cache *cache, rspamd_regexp_t *re,
- enum rspamd_re_type type, gpointer type_data, gsize datalen);
+rspamd_re_cache_add (struct rspamd_re_cache *cache, rspamd_regexp_t *re,
+ enum rspamd_re_type type,
+ gconstpointer type_data, gsize datalen);
/**
* Replace regexp in the cache with another regexp
@@ -111,7 +113,7 @@ const struct rspamd_re_cache_stat *
gint rspamd_re_cache_process (struct rspamd_task *task,
rspamd_regexp_t *re,
enum rspamd_re_type type,
- gpointer type_data,
+ gconstpointer type_data,
gsize datalen,
gboolean is_strong);