diff options
Diffstat (limited to 'src/libserver/events.c')
-rw-r--r-- | src/libserver/events.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libserver/events.c b/src/libserver/events.c index 4925b8c69..a453cf459 100644 --- a/src/libserver/events.c +++ b/src/libserver/events.c @@ -284,3 +284,12 @@ rspamd_session_watch_stop (struct rspamd_async_session *s) return remain; } + + +guint +rspamd_session_events_pending (struct rspamd_async_session *session) +{ + g_assert (session != NULL); + + return g_hash_table_size (session->events); +} |