aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/events.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-13 10:15:47 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-09-13 10:15:47 +0100
commit5480f08714f4ce095ea9cb4d881c11b225e949c4 (patch)
treec579b3e82163bd06614fa8bfbee6bc6f899ecf9e /src/libserver/events.h
parentc05c2b3b82b21c0cad3faf621a11ab9b250ec8e1 (diff)
downloadrspamd-5480f08714f4ce095ea9cb4d881c11b225e949c4.tar.gz
rspamd-5480f08714f4ce095ea9cb4d881c11b225e949c4.zip
[Fix] Implement watchers replacement to handle nested calls
Diffstat (limited to 'src/libserver/events.h')
-rw-r--r--src/libserver/events.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/events.h b/src/libserver/events.h
index bab1848c2..68895d38d 100644
--- a/src/libserver/events.h
+++ b/src/libserver/events.h
@@ -151,6 +151,10 @@ void rspamd_session_watcher_pop (struct rspamd_async_session *s,
struct rspamd_async_watcher* rspamd_session_get_watcher (
struct rspamd_async_session *s);
+struct rspamd_async_watcher* rspamd_session_replace_watcher (
+ struct rspamd_async_session *s,
+ struct rspamd_async_watcher *w);
+
/**
* Returns TRUE if an async session is currently destroying
* @param s