From 7b330fffbe203fb9c27a918284afd6c93eb73d89 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Thu, 28 Feb 2013 02:12:28 +0000 Subject: [PATCH] Melhorando plugin e servico HLLAPI --- host.c | 5 +++-- kybd.c | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/host.c b/host.c index 616691f..8a3a7a7 100644 --- a/host.c +++ b/host.c @@ -494,9 +494,10 @@ static void try_reconnect(H3270 *session) lib3270_reconnect(session,0); } -LIB3270_EXPORT void lib3270_disconnect(H3270 *h) +LIB3270_EXPORT int lib3270_disconnect(H3270 *h) { - host_disconnect(h,0); + host_disconnect(h,0); + return 0; } void host_disconnect(H3270 *hSession, int failed) diff --git a/kybd.c b/kybd.c index 13f8a80..22f294f 100644 --- a/kybd.c +++ b/kybd.c @@ -998,7 +998,7 @@ static Boolean key_Character(H3270 *hSession, int code, Boolean with_ge, Boolean } -LIB3270_EXPORT void lib3270_input_string(H3270 *hSession, const unsigned char *str) +LIB3270_EXPORT int lib3270_input_string(H3270 *hSession, const unsigned char *str) { while(*str) { @@ -1006,7 +1006,9 @@ LIB3270_EXPORT void lib3270_input_string(H3270 *hSession, const unsigned char *s str++; } - screen_update(hSession,0,hSession->rows*hSession->cols); + screen_update(hSession,0,hSession->rows*hSession->cols); + + return 0; } /** -- libgit2 0.21.2