From a9f2c86bcbf8a5aac5ec1dec918b761cd9f72112 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Tue, 7 Aug 2012 10:59:06 +0000 Subject: [PATCH] Ajustando macros e chamadas da GSource para tratar o handle de sessao --- iocallback.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/iocallback.c b/iocallback.c index 4c2ad99..992cb13 100644 --- a/iocallback.c +++ b/iocallback.c @@ -111,6 +111,7 @@ static void * AddSource(int source, H3270 *session, gushort events, void (*fn)(H src->fn = fn; src->poll.fd = (int) source; src->poll.events = events; + src->session = session; g_source_attach((GSource *) src,NULL); g_source_add_poll((GSource *) src,&src->poll); @@ -329,10 +330,6 @@ void v3270_register_io_handlers(v3270Class *cls) static_AddExcept, -// #if !defined(_WIN32) -// static_AddOutput, -// #endif - #ifdef G_THREADS_ENABLED static_CallAndWait, #else -- libgit2 0.21.2