From 08cc9a1636ea2cac59fde10fcd812ce125cf37b2 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Tue, 14 Jan 2014 23:37:46 +0000 Subject: [PATCH] Implementando propriedade "model" no widget --- ctlr.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ctlr.c b/ctlr.c index 824bb81..e5b9a74 100644 --- a/ctlr.c +++ b/ctlr.c @@ -234,11 +234,18 @@ static int parse_model_number(H3270 *session, const char *m) * @param hSession selected 3270 session. * @return Current model number. */ -int lib3270_get_model(H3270 *hSession) +int lib3270_get_model_number(H3270 *hSession) { + CHECK_SESSION_HANDLE(hSession); return hSession->model_num; } +const char * lib3270_get_model(H3270 *hSession) +{ + CHECK_SESSION_HANDLE(hSession); + return hSession->model_name; +} + /** * Deal with the relationships between model numbers and rows/cols. * -- libgit2 0.21.2