aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/multipattern.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-21 11:41:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-21 11:41:49 +0100
commit6e8a06293ca2e44082d55cad1e63b1164515839a (patch)
treeae3b5b3c6791b4650c2cfa09917ccacaecaa8525 /src/libutil/multipattern.h
parent79476cf36afe99b196502a109c85434b59ad5fd7 (diff)
downloadrspamd-6e8a06293ca2e44082d55cad1e63b1164515839a.tar.gz
rspamd-6e8a06293ca2e44082d55cad1e63b1164515839a.zip
[Minor] Use hyperscan check function
Diffstat (limited to 'src/libutil/multipattern.h')
-rw-r--r--src/libutil/multipattern.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/libutil/multipattern.h b/src/libutil/multipattern.h
index c2f30f321..6a7dd4a88 100644
--- a/src/libutil/multipattern.h
+++ b/src/libutil/multipattern.h
@@ -61,8 +61,7 @@ typedef gint (*rspamd_multipattern_cb_t) (struct rspamd_multipattern *mp,
* Init multipart library and set the appropriate cache dir
* @param cache_dir
*/
-void rspamd_multipattern_library_init (const gchar *cache_dir,
- struct rspamd_cryptobox_library_ctx *crypto_ctx);
+void rspamd_multipattern_library_init (const gchar *cache_dir);
/**
* Creates empty multipattern structure
@@ -78,8 +77,8 @@ struct rspamd_multipattern *rspamd_multipattern_create (
* @param reserved
* @return
*/
-struct rspamd_multipattern *rspamd_multipattern_create_sized (
- enum rspamd_multipattern_flags flags, guint reserved);
+struct rspamd_multipattern *rspamd_multipattern_create_sized (guint reserved,
+ enum rspamd_multipattern_flags flags);
/**
* Creates new multipattern structure
@@ -153,4 +152,10 @@ guint rspamd_multipattern_get_npatterns (struct rspamd_multipattern *mp);
*/
void rspamd_multipattern_destroy (struct rspamd_multipattern *mp);
+/**
+ * Returns TRUE if hyperscan is supported
+ * @return
+ */
+gboolean rspamd_multipattern_has_hyperscan (void);
+
#endif /* SRC_LIBUTIL_MULTIPATTERN_H_ */