aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-06 13:55:43 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-06 13:55:43 +0000
commit958cbf047b81c507d3d73deddaf1ee48a36e6415 (patch)
treeef8c1749a247ffa1262d454bd78f4a00364ed5e8 /src/libutil/regexp.h
parent13016e9b0e3eebb9145d7cf08f9d517e6e5b8688 (diff)
downloadrspamd-958cbf047b81c507d3d73deddaf1ee48a36e6415.tar.gz
rspamd-958cbf047b81c507d3d73deddaf1ee48a36e6415.zip
Add method to set re class for any rspamd regexp
Diffstat (limited to 'src/libutil/regexp.h')
-rw-r--r--src/libutil/regexp.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libutil/regexp.h b/src/libutil/regexp.h
index cf012668a..a67bef990 100644
--- a/src/libutil/regexp.h
+++ b/src/libutil/regexp.h
@@ -133,6 +133,17 @@ guint64 rspamd_regexp_get_cache_id (rspamd_regexp_t *re);
guint64 rspamd_regexp_set_cache_id (rspamd_regexp_t *re, guint64 id);
/**
+ * Get regexp class for the re object
+ */
+gpointer rspamd_regexp_get_class (rspamd_regexp_t *re);
+
+/**
+ * Set regexp class for the re object
+ * @return old re class value
+ */
+gpointer rspamd_regexp_set_class (rspamd_regexp_t *re, gpointer re_class);
+
+/**
* Create new regexp cache
* @return
*/