aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-18 14:53:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-18 14:53:13 +0000
commitc31bbb9010e6261b6d1a00dabb0a65a99cf4697e (patch)
treef4d2da4c7494be43b97e00b1a85487f7be55c4a7 /src/libutil/regexp.h
parent4c295c5e252f96cca9e30d00ad2a7e4ddcf746ff (diff)
downloadrspamd-c31bbb9010e6261b6d1a00dabb0a65a99cf4697e.tar.gz
rspamd-c31bbb9010e6261b6d1a00dabb0a65a99cf4697e.zip
[Feature] Add method to create regexp from a glob pattern
Diffstat (limited to 'src/libutil/regexp.h')
-rw-r--r--src/libutil/regexp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libutil/regexp.h b/src/libutil/regexp.h
index d130dea2b..c85276b71 100644
--- a/src/libutil/regexp.h
+++ b/src/libutil/regexp.h
@@ -257,4 +257,12 @@ void rspamd_regexp_library_init (void);
*/
void rspamd_regexp_library_finalize (void);
+/**
+ * Create regexp from glob
+ * @param gl
+ * @param err
+ * @return
+ */
+rspamd_regexp_t *rspamd_regexp_from_glob (const gchar *gl, gsize sz, GError **err);
+
#endif /* REGEXP_H_ */