diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-24 20:24:59 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-07-24 20:33:33 +0100 |
commit | 976a824a0ec586dd5bc82a86d14c3654b10fa4ef (patch) | |
tree | 1aa8bab35b43eb700cbf9ffa45578dbc76e1876b /src/libserver/re_cache.h | |
parent | e3748d403bf05f87ddc12d38869321557b99ad45 (diff) | |
download | rspamd-976a824a0ec586dd5bc82a86d14c3654b10fa4ef.tar.gz rspamd-976a824a0ec586dd5bc82a86d14c3654b10fa4ef.zip |
[Project] Preliminary support of lua conditions for regexps
Diffstat (limited to 'src/libserver/re_cache.h')
-rw-r--r-- | src/libserver/re_cache.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/re_cache.h b/src/libserver/re_cache.h index 26ffa1603..c4517edda 100644 --- a/src/libserver/re_cache.h +++ b/src/libserver/re_cache.h @@ -68,11 +68,13 @@ struct rspamd_re_cache *rspamd_re_cache_new (void); * @param type type of object * @param type_data associated data with the type (e.g. header name) * @param datalen associated data length + * @param lua_cbref optional lua callback reference for matching purposes */ rspamd_regexp_t * rspamd_re_cache_add (struct rspamd_re_cache *cache, rspamd_regexp_t *re, enum rspamd_re_type type, - gconstpointer type_data, gsize datalen); + gconstpointer type_data, gsize datalen, + gint lua_cbref); /** * Replace regexp in the cache with another regexp |