aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-09 14:34:39 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-09 14:34:39 +0000
commitb6408a3c963d1bd73931d07004e99d921672d615 (patch)
tree564282d917690770cfb8237c6c2109b5ce2d0969 /src/libutil/regexp.h
parent86998b26779a19668828aca9753a7551d2a0daf7 (diff)
downloadrspamd-b6408a3c963d1bd73931d07004e99d921672d615.tar.gz
rspamd-b6408a3c963d1bd73931d07004e99d921672d615.zip
Store max hits inside rspamd_regexp_t
Diffstat (limited to 'src/libutil/regexp.h')
-rw-r--r--src/libutil/regexp.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libutil/regexp.h b/src/libutil/regexp.h
index 8d3720f3e..0b585ceec 100644
--- a/src/libutil/regexp.h
+++ b/src/libutil/regexp.h
@@ -122,6 +122,16 @@ guint rspamd_regexp_get_pcre_flags (rspamd_regexp_t *re);
guint rspamd_regexp_get_flags (rspamd_regexp_t *re);
/**
+ * Set regexp maximum hits
+ */
+guint rspamd_regexp_get_maxhits (rspamd_regexp_t *re);
+
+/**
+ * Get regexp maximum hits
+ */
+guint rspamd_regexp_set_maxhits (rspamd_regexp_t *re, guint new_maxhits);
+
+/**
* Returns number of backreferences in a regexp
*/
gint rspamd_regexp_get_nbackrefs (rspamd_regexp_t *re);