aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/re_cache.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-02 18:41:37 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-10-02 18:41:37 +0100
commit3a4c7742435d93b617c8fd8239425d56f95a6639 (patch)
treedeb9071f93571f71dbcb819acc430713665f0a50 /src/libserver/re_cache.h
parent3b92c509518cf97da58bde92231f8745ad07c8d0 (diff)
downloadrspamd-3a4c7742435d93b617c8fd8239425d56f95a6639.tar.gz
rspamd-3a4c7742435d93b617c8fd8239425d56f95a6639.zip
[Rework] Allow execution of async events when hs compiles regexps
Diffstat (limited to 'src/libserver/re_cache.h')
-rw-r--r--src/libserver/re_cache.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libserver/re_cache.h b/src/libserver/re_cache.h
index b9f80375e..6b5aa84f6 100644
--- a/src/libserver/re_cache.h
+++ b/src/libserver/re_cache.h
@@ -160,12 +160,17 @@ const gchar *rspamd_re_cache_type_to_string (enum rspamd_re_type type);
*/
enum rspamd_re_type rspamd_re_cache_type_from_string (const char *str);
+struct ev_loop;
/**
* Compile expressions to the hyperscan tree and store in the `cache_dir`
*/
gint rspamd_re_cache_compile_hyperscan (struct rspamd_re_cache *cache,
- const char *cache_dir, gdouble max_time, gboolean silent,
- GError **err);
+ const char *cache_dir,
+ gdouble max_time,
+ gboolean silent,
+ struct ev_loop *event_loop,
+ void (*cb)(guint ncompiled, GError *err, void *cbd),
+ void *cbd);
/**