aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/multipattern.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/multipattern.h')
-rw-r--r--src/libutil/multipattern.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/libutil/multipattern.h b/src/libutil/multipattern.h
index d8f534b54..ef9f17583 100644
--- a/src/libutil/multipattern.h
+++ b/src/libutil/multipattern.h
@@ -92,7 +92,7 @@ struct rspamd_multipattern *rspamd_multipattern_create_full (
enum rspamd_multipattern_flags flags);
/**
- * Adds new pattern to match engine
+ * Adds new pattern to match engine from zero-terminated string
* @param mp
* @param pattern
*/
@@ -100,6 +100,16 @@ void rspamd_multipattern_add_pattern (struct rspamd_multipattern *mp,
const gchar *pattern, gint flags);
/**
+ * Adds new pattern from arbitrary string
+ * @param mp
+ * @param pattern
+ * @param patlen
+ * @param flags
+ */
+void rspamd_multipattern_add_pattern_len (struct rspamd_multipattern *mp,
+ const gchar *pattern, gsize patlen, gint flags);
+
+/**
* Compiles multipattern structure
* @param mp
* @return