Commit df11ec22503b3ca9ead0f3ae1b0a34d5042c8f4a
1 parent
ef93c44d
Exists in
master
and in
1 other branch
Ajustes para multi-sessão
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
iocallback.c
... | ... | @@ -56,8 +56,8 @@ static void * static_AddExcept(int source, H3270 *session, void (*fn)(H3270 * |
56 | 56 | |
57 | 57 | static void * static_AddTimeOut(unsigned long interval_ms, H3270 *session, void (*proc)(H3270 *session)); |
58 | 58 | static void static_RemoveTimeOut(void * timer); |
59 | -static int static_Sleep(int seconds); | |
60 | -static int static_RunPendingEvents(int wait); | |
59 | +static int static_Sleep(H3270 *hSession, int seconds); | |
60 | +static int static_RunPendingEvents(H3270 *hSession, int wait); | |
61 | 61 | |
62 | 62 | static gboolean IO_prepare(GSource *source, gint *timeout); |
63 | 63 | static gboolean IO_check(GSource *source); |
... | ... | @@ -285,7 +285,7 @@ static int static_CallAndWait(int(*callback)(H3270 *session, void *), H3270 *ses |
285 | 285 | return p.rc; |
286 | 286 | } |
287 | 287 | |
288 | -static int static_Sleep(int seconds) | |
288 | +static int static_Sleep(H3270 *hSession, int seconds) | |
289 | 289 | { |
290 | 290 | time_t end = time(0) + seconds; |
291 | 291 | |
... | ... | @@ -295,7 +295,7 @@ static int static_Sleep(int seconds) |
295 | 295 | return 0; |
296 | 296 | } |
297 | 297 | |
298 | -static int static_RunPendingEvents(int wait) | |
298 | +static int static_RunPendingEvents(H3270 *hSession, int wait) | |
299 | 299 | { |
300 | 300 | int rc = 0; |
301 | 301 | while(gtk_events_pending()) | ... | ... |