diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-15 12:38:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-15 12:38:45 +0100 |
commit | fed99b23a32982fd55195c926a12250d530320c7 (patch) | |
tree | 016c94c6c84ccc678595c4e77240230a19b6d673 /src/libserver/re_cache.h | |
parent | 61a241b92c80b4fad9bbba4b1c8cd14f07d5fd2c (diff) | |
download | rspamd-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.h | 8 |
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); |