Commit aa5003dc96011d627347263aa2c2283e32caa37a

Authored by perry.werneck@gmail.com
1 parent 76239934
Exists in master

Função para atuar sobre um toggle não estava sendo exportada

latest/src/include/lib3270.h
... ... @@ -393,6 +393,16 @@
393 393 LIB3270_EXPORT int lib3270_set_toggle(H3270 *h, LIB3270_TOGGLE ix, int value);
394 394  
395 395 /**
  396 + * Revert toggle status.
  397 + *
  398 + * @param h Session handle.
  399 + * @param ix Toggle id.
  400 + *
  401 + * @return 0 if the toggle was changed, errno code if not.
  402 + */
  403 + LIB3270_EXPORT int lib3270_toggle(H3270 *h, LIB3270_TOGGLE ix);
  404 +
  405 + /**
396 406 * Check if the active connection is secure.
397 407 *
398 408 * @param h Session handle.
... ...
latest/src/lib/toggles.c
... ... @@ -136,7 +136,7 @@ LIB3270_EXPORT int lib3270_set_toggle(H3270 *session, LIB3270_TOGGLE ix, int val
136 136 return -1;
137 137 }
138 138  
139   -LIB3270_EXPORT int lib3270_toggle(H3270 *session, LIB3270_TOGGLE_ID ix)
  139 +LIB3270_EXPORT int lib3270_toggle(H3270 *session, LIB3270_TOGGLE ix)
140 140 {
141 141 CHECK_SESSION_HANDLE(session);
142 142  
... ...