From e8f938a2b6608acc690cd3a2b01be423160d9675 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 26 Dec 2018 14:39:01 -0200 Subject: [PATCH] Fixing boolean property. --- src/include/lib3270.h | 2 +- src/lib3270/properties.c | 16 ++++++++++++++++ src/lib3270/screen.c | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/include/lib3270.h b/src/include/lib3270.h index 41b7a2c..69497ca 100644 --- a/src/include/lib3270.h +++ b/src/include/lib3270.h @@ -421,7 +421,7 @@ */ LIB3270_EXPORT int lib3270_get_height(H3270 *h); - LIB3270_EXPORT unsigned int lib3270_get_length(H3270 *h); + LIB3270_EXPORT int lib3270_get_length(H3270 *h); /** * @brief Creates an empty TN3270 session. diff --git a/src/lib3270/properties.c b/src/lib3270/properties.c index 8b0b0b1..68afdfe 100644 --- a/src/lib3270/properties.c +++ b/src/lib3270/properties.c @@ -142,6 +142,22 @@ NULL // Set value. }, + /* + { + "", // Property name. + N_( "" ), // Property description. + NULL, // Get value. + NULL // Set value. + }, + */ + + { + NULL, + NULL, + NULL, + NULL + } + }; return properties; diff --git a/src/lib3270/screen.c b/src/lib3270/screen.c index bfa4a4a..779752c 100644 --- a/src/lib3270/screen.c +++ b/src/lib3270/screen.c @@ -217,7 +217,7 @@ static unsigned short calc_attrs(H3270 *session, int baddr, int fa_addr, int fa) return a; } -LIB3270_EXPORT unsigned int lib3270_get_length(H3270 *h) +LIB3270_EXPORT int lib3270_get_length(H3270 *h) { CHECK_SESSION_HANDLE(h); return h->rows * h->cols; -- libgit2 0.21.2