aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.h
diff options
context:
space:
mode:
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 0b585ceec..bf88035e2 100644
--- a/src/libutil/regexp.h
+++ b/src/libutil/regexp.h
@@ -28,6 +28,10 @@
#include "config.h"
#define RSPAMD_INVALID_ID ((guint64)-1LL)
+#define RSPAMD_REGEXP_FLAG_RAW (1 << 1)
+#define RSPAMD_REGEXP_FLAG_NOOPT (1 << 2)
+#define RSPAMD_REGEXP_FLAG_FULL_MATCH (1 << 3)
+#define RSPAMD_REGEXP_FLAG_PCRE_ONLY (1 << 4)
typedef struct rspamd_regexp_s rspamd_regexp_t;
struct rspamd_regexp_cache;
@@ -122,6 +126,11 @@ guint rspamd_regexp_get_pcre_flags (rspamd_regexp_t *re);
guint rspamd_regexp_get_flags (rspamd_regexp_t *re);
/**
+ * Set rspamd flags for the regexp
+ */
+guint rspamd_regexp_set_flags (rspamd_regexp_t *re, guint new_flags);
+
+/**
* Set regexp maximum hits
*/
guint rspamd_regexp_get_maxhits (rspamd_regexp_t *re);