aboutsummaryrefslogtreecommitdiff
path: root/src/application.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.c')
-rw-r--r--src/application.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/application.c b/src/application.c
index 2f367a5..0db05bb 100644
--- a/src/application.c
+++ b/src/application.c
@@ -147,6 +147,7 @@ typedef struct MESSENGER_ApplicationEventCall
147{ 147{
148 MESSENGER_Application *app; 148 MESSENGER_Application *app;
149 MESSENGER_ApplicationEvent event; 149 MESSENGER_ApplicationEvent event;
150 void *cls;
150} MESSENGER_ApplicationEventCall; 151} MESSENGER_ApplicationEventCall;
151 152
152static gboolean 153static gboolean
@@ -155,7 +156,7 @@ _application_event_call(gpointer user_data)
155 MESSENGER_ApplicationEventCall *call; 156 MESSENGER_ApplicationEventCall *call;
156 157
157 call = (MESSENGER_ApplicationEventCall*) user_data; 158 call = (MESSENGER_ApplicationEventCall*) user_data;
158 call->event(call->app); 159 call->event(call->app, call->cls);
159 160
160 GNUNET_free(call); 161 GNUNET_free(call);
161 return FALSE; 162 return FALSE;
@@ -163,7 +164,8 @@ _application_event_call(gpointer user_data)
163 164
164void 165void
165application_call_event(MESSENGER_Application *app, 166application_call_event(MESSENGER_Application *app,
166 MESSENGER_ApplicationEvent event) 167 MESSENGER_ApplicationEvent event,
168 void *cls)
167{ 169{
168 MESSENGER_ApplicationEventCall *call; 170 MESSENGER_ApplicationEventCall *call;
169 171
@@ -173,6 +175,7 @@ application_call_event(MESSENGER_Application *app,
173 175
174 call->app = app; 176 call->app = app;
175 call->event = event; 177 call->event = event;
178 call->cls = cls;
176 179
177 g_idle_add(_application_event_call, call); 180 g_idle_add(_application_event_call, call);
178} 181}