From 976a824a0ec586dd5bc82a86d14c3654b10fa4ef Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 24 Jul 2020 20:24:59 +0100 Subject: [Project] Preliminary support of lua conditions for regexps --- src/libserver/re_cache.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libserver/re_cache.h') 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 -- cgit v1.2.3