aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-09 14:17:22 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-09 14:17:22 +0000
commit1fbe3f605d921e71839d41987c3328615d6f9cf3 (patch)
treed618ebeaa277d0cd4146072e2ad7ab9eef993099 /src/libutil/regexp.h
parent9283454d84781adfafc40e92a125a883d671c69d (diff)
downloadrspamd-1fbe3f605d921e71839d41987c3328615d6f9cf3.tar.gz
rspamd-1fbe3f605d921e71839d41987c3328615d6f9cf3.zip
Add methods to get re flags
Diffstat (limited to 'src/libutil/regexp.h')
-rw-r--r--src/libutil/regexp.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/regexp.h b/src/libutil/regexp.h
index a64f36e1a..8d3720f3e 100644
--- a/src/libutil/regexp.h
+++ b/src/libutil/regexp.h
@@ -113,6 +113,15 @@ gpointer rspamd_regexp_get_id (rspamd_regexp_t *re);
const char* rspamd_regexp_get_pattern (rspamd_regexp_t *re);
/**
+ * Get PCRE flags for the regexp
+ */
+guint rspamd_regexp_get_pcre_flags (rspamd_regexp_t *re);
+/**
+ * Get rspamd flags for the regexp
+ */
+guint rspamd_regexp_get_flags (rspamd_regexp_t *re);
+
+/**
* Returns number of backreferences in a regexp
*/
gint rspamd_regexp_get_nbackrefs (rspamd_regexp_t *re);