aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-09 11:04:28 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-09 11:04:28 +0100
commit64ff1b265cbba1cdf5f0c549690c971ec4b933fa (patch)
tree1537fea88c8e7975ed8b594602a30e3d943eb2de /src
parenta2e67d4c7be770f67aa16ebc3b6f32b4187b322f (diff)
downloadrspamd-64ff1b265cbba1cdf5f0c549690c971ec4b933fa.tar.gz
rspamd-64ff1b265cbba1cdf5f0c549690c971ec4b933fa.zip
Pass session data to event watchers.
Diffstat (limited to 'src')
-rw-r--r--src/libserver/events.c2
-rw-r--r--src/libserver/events.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/events.c b/src/libserver/events.c
index a453cf459..687b2e97a 100644
--- a/src/libserver/events.c
+++ b/src/libserver/events.c
@@ -173,7 +173,7 @@ rspamd_session_remove_event (struct rspamd_async_session *session,
if (found_ev->w) {
if (found_ev->w->remain > 0) {
if (--found_ev->w->remain == 0) {
- found_ev->w->cb (found_ev->w->ud);
+ found_ev->w->cb (session->user_data, found_ev->w->ud);
}
}
}
diff --git a/src/libserver/events.h b/src/libserver/events.h
index b2f463b5b..fa4e0cbc7 100644
--- a/src/libserver/events.h
+++ b/src/libserver/events.h
@@ -32,7 +32,7 @@ struct rspamd_async_event;
struct rspamd_async_session;
typedef void (*event_finalizer_t)(gpointer ud);
-typedef void (*event_watcher_t)(gpointer ud);
+typedef void (*event_watcher_t)(gpointer session_data, gpointer ud);
typedef gboolean (*session_finalizer_t)(gpointer user_data);
/**