Commit 08cc9a1636ea2cac59fde10fcd812ce125cf37b2
1 parent
93d8be13
Exists in
master
and in
3 other branches
Implementando propriedade "model" no widget
Showing
1 changed file
with
8 additions
and
1 deletions
Show diff stats
ctlr.c
| @@ -234,11 +234,18 @@ static int parse_model_number(H3270 *session, const char *m) | @@ -234,11 +234,18 @@ static int parse_model_number(H3270 *session, const char *m) | ||
| 234 | * @param hSession selected 3270 session. | 234 | * @param hSession selected 3270 session. |
| 235 | * @return Current model number. | 235 | * @return Current model number. |
| 236 | */ | 236 | */ |
| 237 | -int lib3270_get_model(H3270 *hSession) | 237 | +int lib3270_get_model_number(H3270 *hSession) |
| 238 | { | 238 | { |
| 239 | + CHECK_SESSION_HANDLE(hSession); | ||
| 239 | return hSession->model_num; | 240 | return hSession->model_num; |
| 240 | } | 241 | } |
| 241 | 242 | ||
| 243 | +const char * lib3270_get_model(H3270 *hSession) | ||
| 244 | +{ | ||
| 245 | + CHECK_SESSION_HANDLE(hSession); | ||
| 246 | + return hSession->model_name; | ||
| 247 | +} | ||
| 248 | + | ||
| 242 | /** | 249 | /** |
| 243 | * Deal with the relationships between model numbers and rows/cols. | 250 | * Deal with the relationships between model numbers and rows/cols. |
| 244 | * | 251 | * |