Commit 0461fddb80f3f78d615dd02c37ca7a03794041c5

Authored by Perry Werneck
1 parent 260255da

Reserving method for new API call.

Showing 2 changed files with 14 additions and 1 deletions   Show diff stats
src/core/iocalls.c
... ... @@ -472,6 +472,11 @@ LIB3270_EXPORT int lib3270_wait(H3270 *hSession, int seconds)
472 472 return 0;
473 473 }
474 474  
  475 +LIB3270_EXPORT int wait_for_update(H3270 *hSession, int seconds)
  476 +{
  477 + return errno = ENOTSUP;
  478 +}
  479 +
475 480 LIB3270_EXPORT int lib3270_wait_for_ready(H3270 *hSession, int seconds)
476 481 {
477 482 time_t end = time(0)+seconds;
... ...
src/include/lib3270.h
... ... @@ -998,7 +998,7 @@
998 998 LIB3270_EXPORT void * lib3270_get_user_data(H3270 *h);
999 999  
1000 1000 /**
1001   - * Wait for "N" seconds keeping main loop active.
  1001 + * @brief Wait for "N" seconds keeping main loop active.
1002 1002 *
1003 1003 * @param seconds Number of seconds to wait.
1004 1004 *
... ... @@ -1006,6 +1006,14 @@
1006 1006 LIB3270_EXPORT int lib3270_wait(H3270 *hSession, int seconds);
1007 1007  
1008 1008 /**
  1009 + * @brief Wait for "N" seconds or screen change; keeps main loop active.
  1010 + *
  1011 + * @param seconds Number of seconds to wait.
  1012 + *
  1013 + */
  1014 + LIB3270_EXPORT int wait_for_update(H3270 *hSession, int seconds);
  1015 +
  1016 + /**
1009 1017 * Wait "N" seconds for "ready" state.
1010 1018 *
1011 1019 * @param seconds Number of seconds to wait.
... ...