Commit a9f2c86bcbf8a5aac5ec1dec918b761cd9f72112
1 parent
df11ec22
Exists in
master
and in
1 other branch
Ajustando macros e chamadas da GSource para tratar o handle de sessao
Showing
1 changed file
with
1 additions
and
4 deletions
Show diff stats
iocallback.c
... | ... | @@ -111,6 +111,7 @@ static void * AddSource(int source, H3270 *session, gushort events, void (*fn)(H |
111 | 111 | src->fn = fn; |
112 | 112 | src->poll.fd = (int) source; |
113 | 113 | src->poll.events = events; |
114 | + src->session = session; | |
114 | 115 | |
115 | 116 | g_source_attach((GSource *) src,NULL); |
116 | 117 | g_source_add_poll((GSource *) src,&src->poll); |
... | ... | @@ -329,10 +330,6 @@ void v3270_register_io_handlers(v3270Class *cls) |
329 | 330 | |
330 | 331 | static_AddExcept, |
331 | 332 | |
332 | -// #if !defined(_WIN32) | |
333 | -// static_AddOutput, | |
334 | -// #endif | |
335 | - | |
336 | 333 | #ifdef G_THREADS_ENABLED |
337 | 334 | static_CallAndWait, |
338 | 335 | #else | ... | ... |