From aa5003dc96011d627347263aa2c2283e32caa37a Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Mon, 27 Feb 2012 17:57:22 +0000 Subject: [PATCH] Função para atuar sobre um toggle não estava sendo exportada --- latest/src/include/lib3270.h | 10 ++++++++++ latest/src/lib/toggles.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/latest/src/include/lib3270.h b/latest/src/include/lib3270.h index d28864b..b374eae 100644 --- a/latest/src/include/lib3270.h +++ b/latest/src/include/lib3270.h @@ -393,6 +393,16 @@ LIB3270_EXPORT int lib3270_set_toggle(H3270 *h, LIB3270_TOGGLE ix, int value); /** + * Revert toggle status. + * + * @param h Session handle. + * @param ix Toggle id. + * + * @return 0 if the toggle was changed, errno code if not. + */ + LIB3270_EXPORT int lib3270_toggle(H3270 *h, LIB3270_TOGGLE ix); + + /** * Check if the active connection is secure. * * @param h Session handle. diff --git a/latest/src/lib/toggles.c b/latest/src/lib/toggles.c index b6b918e..206f6e7 100644 --- a/latest/src/lib/toggles.c +++ b/latest/src/lib/toggles.c @@ -136,7 +136,7 @@ LIB3270_EXPORT int lib3270_set_toggle(H3270 *session, LIB3270_TOGGLE ix, int val return -1; } -LIB3270_EXPORT int lib3270_toggle(H3270 *session, LIB3270_TOGGLE_ID ix) +LIB3270_EXPORT int lib3270_toggle(H3270 *session, LIB3270_TOGGLE ix) { CHECK_SESSION_HANDLE(session); -- libgit2 0.21.2