diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-29 22:39:23 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-29 22:39:23 +0000 |
commit | b3f330944fde7beadea832add133928a51b80609 (patch) | |
tree | 534861f5b102bfba733e95e61b7c1318638de80b /src/libserver/events.c | |
parent | d9777316bfbfd8194cb94c1615dfa488360da674 (diff) | |
download | rspamd-b3f330944fde7beadea832add133928a51b80609.tar.gz rspamd-b3f330944fde7beadea832add133928a51b80609.zip |
Add routine to add events for a specific watcher structure
Diffstat (limited to 'src/libserver/events.c')
-rw-r--r-- | src/libserver/events.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libserver/events.c b/src/libserver/events.c index b996f1559..d94149584 100644 --- a/src/libserver/events.c +++ b/src/libserver/events.c @@ -320,6 +320,17 @@ rspamd_session_watcher_push (struct rspamd_async_session *s) } void +rspamd_session_watcher_push_specific (struct rspamd_async_session *s, + struct rspamd_async_watcher *w) +{ + g_assert (s != NULL); + + if (w) { + w->remain ++; + } +} + +void rspamd_session_watcher_pop (struct rspamd_async_session *s, struct rspamd_async_watcher *w) { |