Commit 235217f166e37487e55194c2ab1cbe42a94bece9

Authored by Perry Werneck
1 parent 3a4fbc2b

Fixing method deleted by mistake.

Showing 1 changed file with 13 additions and 0 deletions   Show diff stats
src/core/trace_ds.c
... ... @@ -260,6 +260,19 @@ LIB3270_EXPORT void lib3270_write_event_trace(H3270 *session, const char *fmt, .
260 260 va_end(args);
261 261 }
262 262  
  263 +LIB3270_EXPORT void lib3270_trace_event(H3270 *session, const char *fmt, ...)
  264 +{
  265 + va_list args;
  266 +
  267 + if(!lib3270_get_toggle(session,LIB3270_TOGGLE_EVENT_TRACE))
  268 + return;
  269 +
  270 + va_start(args, fmt);
  271 + session->trace.handler(session,session->trace.userdata,fmt, args);
  272 + va_end(args);
  273 +}
  274 +
  275 +
263 276 /**
264 277 * Screen trace function, called when the host clears the screen.
265 278 *
... ...