aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/map.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-16 17:50:14 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-16 17:50:14 +0000
commit0dca31d70718c5bbefc5013052f94115084fc548 (patch)
tree11e6df8cdc76b38b5c8e81bccf04d6e5752c38e2 /src/libutil/map.h
parent4ce6722cedb43293ee58e96b84c40dd9ed4b7a9c (diff)
downloadrspamd-0dca31d70718c5bbefc5013052f94115084fc548.tar.gz
rspamd-0dca31d70718c5bbefc5013052f94115084fc548.zip
[Feature] Add method to check regexp maps
Diffstat (limited to 'src/libutil/map.h')
-rw-r--r--src/libutil/map.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libutil/map.h b/src/libutil/map.h
index c37e9024c..f7cbc3076 100644
--- a/src/libutil/map.h
+++ b/src/libutil/map.h
@@ -128,4 +128,15 @@ rspamd_parse_kv_list (rspamd_mempool_t * pool,
const gchar *default_value,
gboolean final);
+/**
+ * Find a single (any) matching regexp for the specified text or NULL if
+ * no matches found
+ * @param map
+ * @param in
+ * @param len
+ * @return
+ */
+gpointer rspamd_match_regexp_map (struct rspamd_regexp_map *map,
+ const gchar *in, gsize len);
+
#endif