Commit e64bd9070a719e3eea1c42f3ec79c17cf6f4f403

Authored by perry.werneck@gmail.com
1 parent 5d02fdee
Exists in master

Padronizando nomes das funções para obter/alterar o modelo de terminal

Showing 2 changed files with 7 additions and 4 deletions   Show diff stats
src/include/lib3270/api.h
... ... @@ -581,8 +581,11 @@
581 581  
582 582 #define query_3270_terminal_status(void) lib3270_get_program_message(NULL)
583 583  
584   - LIB3270_EXPORT int set_3270_model(H3270 *session, int model);
585   - LIB3270_EXPORT int get_3270_model(H3270 *session);
  584 + #define set_3270_model(h,m) lib3270_set_model(h,m)
  585 + #define get_3270_model(h) lib3270_get_model(h)
  586 +
  587 + LIB3270_EXPORT int lib3270_set_model(H3270 *session, int model);
  588 + LIB3270_EXPORT int lib3270_get_model(H3270 *session);
586 589  
587 590 /* Get connection info */
588 591 #define get_connected_lu(h) lib3270_get_luname(h)
... ...
src/lib/ctlr.c
... ... @@ -185,7 +185,7 @@ void ctlr_reinit(H3270 *session, unsigned cmask)
185 185 * @param session selected 3270 session.
186 186 * @return Current model number.
187 187 */
188   -int get_3270_model(H3270 *session)
  188 +int lib3270_get_model(H3270 *session)
189 189 {
190 190 return session->model_num;
191 191 }
... ... @@ -195,7 +195,7 @@ int get_3270_model(H3270 *session)
195 195 *
196 196 * @param model New model (updates model name
197 197 */
198   -int set_3270_model(H3270 *session, int model)
  198 +int lib3270_set_model(H3270 *session, int model)
199 199 {
200 200 if(CONNECTED)
201 201 return EBUSY;
... ...