Commit 16e7c1d4728518ff8dfa04f81df755d8bb8de691

Authored by perry.werneck@gmail.com
1 parent 30ab61ec
Exists in master and in 1 other branch develop

Iniciando remoção das chamadas a gethostbyname

Showing 1 changed file with 12 additions and 0 deletions   Show diff stats
iocallback.c
... ... @@ -120,6 +120,16 @@ static void * AddSource(int source, H3270 *session, gushort events, void (*fn)(H
120 120 }
121 121  
122 122 #ifdef WIN32
  123 +static void * static_AddOutput(HANDLE source, H3270 *session, void (*fn)(H3270 *session))
  124 +#else
  125 +static void * static_AddOutput(int source, H3270 *session, void (*fn)(H3270 *session))
  126 +#endif // WIN32
  127 +{
  128 + return AddSource(source,session,G_IO_OUT|G_IO_HUP|G_IO_ERR,fn);
  129 +}
  130 +
  131 +
  132 +#ifdef WIN32
123 133 static void * static_AddInput(HANDLE source, H3270 *session, void (*fn)(H3270 *session))
124 134 #else
125 135 static void * static_AddInput(int source, H3270 *session, void (*fn)(H3270 *session))
... ... @@ -326,6 +336,8 @@ void v3270_register_io_handlers(v3270Class *cls)
326 336 static_RemoveTimeOut,
327 337  
328 338 static_AddInput,
  339 + static_AddOutput,
  340 +
329 341 static_RemoveSource,
330 342  
331 343 static_AddExcept,
... ...