Commit 3577dc18d07578c394e7679dbe5e43d04a43e66b
1 parent
b1377cfa
Exists in
master
and in
3 other branches
Corrigindo incoerências nos diálogos e APIs
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
host.c
| @@ -506,7 +506,7 @@ static void update_host(H3270 *h) | @@ -506,7 +506,7 @@ static void update_host(H3270 *h) | ||
| 506 | 506 | ||
| 507 | } | 507 | } |
| 508 | 508 | ||
| 509 | -LIB3270_EXPORT const char * lib3270_set_host(H3270 *h, const char *n) | 509 | +LIB3270_EXPORT const char * lib3270_set_url(H3270 *h, const char *n) |
| 510 | { | 510 | { |
| 511 | CHECK_SESSION_HANDLE(h); | 511 | CHECK_SESSION_HANDLE(h); |
| 512 | 512 |
macros.c
| @@ -258,12 +258,12 @@ | @@ -258,12 +258,12 @@ | ||
| 258 | break; | 258 | break; |
| 259 | 259 | ||
| 260 | case 2: | 260 | case 2: |
| 261 | - lib3270_set_host(hSession,argv[1]); | 261 | + lib3270_set_url(hSession,argv[1]); |
| 262 | rc = lib3270_connect(hSession,0); | 262 | rc = lib3270_connect(hSession,0); |
| 263 | break; | 263 | break; |
| 264 | 264 | ||
| 265 | case 3: | 265 | case 3: |
| 266 | - lib3270_set_host(hSession,argv[1]); | 266 | + lib3270_set_url(hSession,argv[1]); |
| 267 | rc = lib3270_connect(hSession,atoi(argv[2])); | 267 | rc = lib3270_connect(hSession,atoi(argv[2])); |
| 268 | break; | 268 | break; |
| 269 | 269 |
testprogram.c
| @@ -40,7 +40,7 @@ int main(int numpar, char *param[]) | @@ -40,7 +40,7 @@ int main(int numpar, char *param[]) | ||
| 40 | // rc = lib3270_connect_host(h, "127.0.0.1", "9090", LIB3270_CONNECT_OPTION_WAIT); | 40 | // rc = lib3270_connect_host(h, "127.0.0.1", "9090", LIB3270_CONNECT_OPTION_WAIT); |
| 41 | 41 | ||
| 42 | // lib3270_set_host_url(h,"tn3270://fandezhi.efglobe.com:9090?lu=default"); | 42 | // lib3270_set_host_url(h,"tn3270://fandezhi.efglobe.com:9090?lu=default"); |
| 43 | - lib3270_set_host(h,"tn3270://fandezhi.efglobe.com"); | 43 | + lib3270_set_url(h,"tn3270://fandezhi.efglobe.com"); |
| 44 | 44 | ||
| 45 | printf("\nConnect exits with rc=%d\n",rc); | 45 | printf("\nConnect exits with rc=%d\n",rc); |
| 46 | 46 |