Commit 932d75df265c4272b8d78c6e21f84d60bae3e7eb
1 parent
545d52b6
Exists in
master
and in
5 other branches
Atualizando plugin hllapi apos teste em VM
Showing
6 changed files
with
119 additions
and
13 deletions
Show diff stats
Makefile.in
| @@ -154,7 +154,7 @@ debian/lib3270-dev.install: Makefile | @@ -154,7 +154,7 @@ debian/lib3270-dev.install: Makefile | ||
| 154 | @echo "$(includedir)/lib3270.h" > $@ | 154 | @echo "$(includedir)/lib3270.h" > $@ |
| 155 | @echo "$(includedir)/lib3270" >> $@ | 155 | @echo "$(includedir)/lib3270" >> $@ |
| 156 | @echo "$(datarootdir)/@PACKAGE_NAME@/ui/99debug.xml" >> $@ | 156 | @echo "$(datarootdir)/@PACKAGE_NAME@/ui/99debug.xml" >> $@ |
| 157 | - @echo "$(libdir)/pkgconfig/*.pc" >: $@ | 157 | + @echo "$(libdir)/pkgconfig/*.pc" >> $@ |
| 158 | 158 | ||
| 159 | #---[ Debug targets ]---------------------------------------------------------- | 159 | #---[ Debug targets ]---------------------------------------------------------- |
| 160 | 160 | ||
| @@ -198,7 +198,9 @@ endif | @@ -198,7 +198,9 @@ endif | ||
| 198 | nsi: Release | 198 | nsi: Release |
| 199 | ifneq ($(MAKENSIS),no) | 199 | ifneq ($(MAKENSIS),no) |
| 200 | @chmod +x makegtkruntime.sh | 200 | @chmod +x makegtkruntime.sh |
| 201 | + @echo " GEN GTK Runtime" | ||
| 201 | @./makegtkruntime.sh | 202 | @./makegtkruntime.sh |
| 203 | + @echo " GEN Windows installer" | ||
| 202 | @"$(MAKENSIS)" $(PACKAGE_NAME).nsi | 204 | @"$(MAKENSIS)" $(PACKAGE_NAME).nsi |
| 203 | endif | 205 | endif |
| 204 | 206 |
po/pt_BR.po
| @@ -5,7 +5,7 @@ msgid "" | @@ -5,7 +5,7 @@ msgid "" | ||
| 5 | msgstr "" | 5 | msgstr "" |
| 6 | "Project-Id-Version: pw3270 5.0\n" | 6 | "Project-Id-Version: pw3270 5.0\n" |
| 7 | "Report-Msgid-Bugs-To: \n" | 7 | "Report-Msgid-Bugs-To: \n" |
| 8 | -"POT-Creation-Date: 2012-09-17 14:31-0300\n" | 8 | +"POT-Creation-Date: 2012-09-19 09:13-0300\n" |
| 9 | "PO-Revision-Date: 2012-09-14 14:32-0300\n" | 9 | "PO-Revision-Date: 2012-09-14 14:32-0300\n" |
| 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" | 10 | "Last-Translator: Perry Werneck <perry.werneck@gmail.com>\n" |
| 11 | "Language-Team: Português <perry.werneck@gmail.com>\n" | 11 | "Language-Team: Português <perry.werneck@gmail.com>\n" |
| @@ -87,6 +87,10 @@ msgstr "Adicionar à cópia" | @@ -87,6 +87,10 @@ msgstr "Adicionar à cópia" | ||
| 87 | msgid "Alert sound" | 87 | msgid "Alert sound" |
| 88 | msgstr "Aviso sonoro" | 88 | msgstr "Aviso sonoro" |
| 89 | 89 | ||
| 90 | +#: ui/10keypad.xml:352 | ||
| 91 | +msgid "Attn" | ||
| 92 | +msgstr "Attn" | ||
| 93 | + | ||
| 90 | #: ui/00default.xml:128 | 94 | #: ui/00default.xml:128 |
| 91 | msgid "Auto-Reconnect" | 95 | msgid "Auto-Reconnect" |
| 92 | msgstr "Reconectar automaticamente" | 96 | msgstr "Reconectar automaticamente" |
| @@ -107,6 +111,10 @@ msgstr "Cursor piscante" | @@ -107,6 +111,10 @@ msgstr "Cursor piscante" | ||
| 107 | msgid "Bold" | 111 | msgid "Bold" |
| 108 | msgstr "Negrito" | 112 | msgstr "Negrito" |
| 109 | 113 | ||
| 114 | +#: ui/10keypad.xml:353 | ||
| 115 | +msgid "Break" | ||
| 116 | +msgstr "Break" | ||
| 117 | + | ||
| 110 | #: telnet.c:2059 | 118 | #: telnet.c:2059 |
| 111 | msgid "Broken pipe" | 119 | msgid "Broken pipe" |
| 112 | msgstr "Conexão interrompida" | 120 | msgstr "Conexão interrompida" |
| @@ -196,7 +204,7 @@ msgstr "Conexão foi cancelada pelo servidor" | @@ -196,7 +204,7 @@ msgstr "Conexão foi cancelada pelo servidor" | ||
| 196 | msgid "Copy" | 204 | msgid "Copy" |
| 197 | msgstr "Copiar" | 205 | msgstr "Copiar" |
| 198 | 206 | ||
| 199 | -#: ui/99debug.xml:299 | 207 | +#: ui/99debug.xml:397 |
| 200 | msgid "Copy as HTML" | 208 | msgid "Copy as HTML" |
| 201 | msgstr "Copiar como HTML" | 209 | msgstr "Copiar como HTML" |
| 202 | 210 | ||
| @@ -212,7 +220,7 @@ msgstr "Cursor mira" | @@ -212,7 +220,7 @@ msgstr "Cursor mira" | ||
| 212 | msgid "Cut" | 220 | msgid "Cut" |
| 213 | msgstr "Recortar" | 221 | msgstr "Recortar" |
| 214 | 222 | ||
| 215 | -#: ui/99debug.xml:304 | 223 | +#: ui/99debug.xml:402 |
| 216 | msgid "DS Trace" | 224 | msgid "DS Trace" |
| 217 | msgstr "DS Trace" | 225 | msgstr "DS Trace" |
| 218 | 226 | ||
| @@ -220,11 +228,11 @@ msgstr "DS Trace" | @@ -220,11 +228,11 @@ msgstr "DS Trace" | ||
| 220 | msgid "Data conversion error" | 228 | msgid "Data conversion error" |
| 221 | msgstr "Erro na conversão de dados" | 229 | msgstr "Erro na conversão de dados" |
| 222 | 230 | ||
| 223 | -#: ui/99debug.xml:312 | 231 | +#: ui/99debug.xml:410 |
| 224 | msgid "Debug" | 232 | msgid "Debug" |
| 225 | msgstr "Depuração" | 233 | msgstr "Depuração" |
| 226 | 234 | ||
| 227 | -#: ui/99debug.xml:314 | 235 | +#: ui/99debug.xml:412 |
| 228 | msgid "Debug window updates" | 236 | msgid "Debug window updates" |
| 229 | msgstr "Mostrar atualizações de janela" | 237 | msgstr "Mostrar atualizações de janela" |
| 230 | 238 | ||
| @@ -256,6 +264,21 @@ msgstr "Nome do servidor em branco" | @@ -256,6 +264,21 @@ msgstr "Nome do servidor em branco" | ||
| 256 | msgid "Empty port name" | 264 | msgid "Empty port name" |
| 257 | msgstr "Porta em branco" | 265 | msgstr "Porta em branco" |
| 258 | 266 | ||
| 267 | +#: ui/10keypad.xml:348 | ||
| 268 | +msgid "" | ||
| 269 | +"Erase\n" | ||
| 270 | +"EOF" | ||
| 271 | +msgstr "" | ||
| 272 | +"Erase\n" | ||
| 273 | +"EOF" | ||
| 274 | + | ||
| 275 | +#: ui/10keypad.xml:349 | ||
| 276 | +#, fuzzy | ||
| 277 | +msgid "" | ||
| 278 | +"Erase\n" | ||
| 279 | +"Input" | ||
| 280 | +msgstr "Apagar campos" | ||
| 281 | + | ||
| 259 | #: ui/00default.xml:80 | 282 | #: ui/00default.xml:80 |
| 260 | msgid "Erase input" | 283 | msgid "Erase input" |
| 261 | msgstr "Apagar campos" | 284 | msgstr "Apagar campos" |
| @@ -302,7 +325,7 @@ msgstr "Erro em ioctl(%s) ao ativar o modo não blocante" | @@ -302,7 +325,7 @@ msgstr "Erro em ioctl(%s) ao ativar o modo não blocante" | ||
| 302 | msgid "Error resolving %s: %s" | 325 | msgid "Error resolving %s: %s" |
| 303 | msgstr "Erro ao resolver %s: %s" | 326 | msgstr "Erro ao resolver %s: %s" |
| 304 | 327 | ||
| 305 | -#: ui/99debug.xml:306 | 328 | +#: ui/99debug.xml:404 |
| 306 | msgid "Event Trace" | 329 | msgid "Event Trace" |
| 307 | msgstr "Trace de eventos" | 330 | msgstr "Trace de eventos" |
| 308 | 331 | ||
| @@ -419,6 +442,10 @@ msgstr "Manter selecionado" | @@ -419,6 +442,10 @@ msgstr "Manter selecionado" | ||
| 419 | msgid "Keyboard is locked" | 442 | msgid "Keyboard is locked" |
| 420 | msgstr "Teclado está bloqueado" | 443 | msgstr "Teclado está bloqueado" |
| 421 | 444 | ||
| 445 | +#: ui/10keypad.xml:298 | ||
| 446 | +msgid "Lateral keypad" | ||
| 447 | +msgstr "Lateral keypad" | ||
| 448 | + | ||
| 422 | #: host.c:390 | 449 | #: host.c:390 |
| 423 | msgid "Missing ']'" | 450 | msgid "Missing ']'" |
| 424 | msgstr "Faltando ']'" | 451 | msgstr "Faltando ']'" |
| @@ -460,6 +487,66 @@ msgstr "Não está no modo 3270, transferência cancelada" | @@ -460,6 +487,66 @@ msgstr "Não está no modo 3270, transferência cancelada" | ||
| 460 | msgid "Option '%c:' is not supported" | 487 | msgid "Option '%c:' is not supported" |
| 461 | msgstr "Opção não suportada: '%c:'" | 488 | msgstr "Opção não suportada: '%c:'" |
| 462 | 489 | ||
| 490 | +#: ui/10keypad.xml:335 | ||
| 491 | +msgid "PA1" | ||
| 492 | +msgstr "PA1" | ||
| 493 | + | ||
| 494 | +#: ui/10keypad.xml:336 | ||
| 495 | +msgid "PA2" | ||
| 496 | +msgstr "PA2" | ||
| 497 | + | ||
| 498 | +#: ui/10keypad.xml:337 | ||
| 499 | +msgid "PA3" | ||
| 500 | +msgstr "PA3" | ||
| 501 | + | ||
| 502 | +#: ui/10keypad.xml:300 | ||
| 503 | +msgid "PF1" | ||
| 504 | +msgstr "PF1" | ||
| 505 | + | ||
| 506 | +#: ui/10keypad.xml:315 | ||
| 507 | +msgid "PF10" | ||
| 508 | +msgstr "PF10" | ||
| 509 | + | ||
| 510 | +#: ui/10keypad.xml:316 | ||
| 511 | +msgid "PF11" | ||
| 512 | +msgstr "PF11" | ||
| 513 | + | ||
| 514 | +#: ui/10keypad.xml:317 | ||
| 515 | +msgid "PF12" | ||
| 516 | +msgstr "PF12" | ||
| 517 | + | ||
| 518 | +#: ui/10keypad.xml:301 | ||
| 519 | +msgid "PF2" | ||
| 520 | +msgstr "PF2" | ||
| 521 | + | ||
| 522 | +#: ui/10keypad.xml:302 | ||
| 523 | +msgid "PF3" | ||
| 524 | +msgstr "PF3" | ||
| 525 | + | ||
| 526 | +#: ui/10keypad.xml:305 | ||
| 527 | +msgid "PF4" | ||
| 528 | +msgstr "PF4" | ||
| 529 | + | ||
| 530 | +#: ui/10keypad.xml:306 | ||
| 531 | +msgid "PF5" | ||
| 532 | +msgstr "PF5" | ||
| 533 | + | ||
| 534 | +#: ui/10keypad.xml:307 | ||
| 535 | +msgid "PF6" | ||
| 536 | +msgstr "PF6" | ||
| 537 | + | ||
| 538 | +#: ui/10keypad.xml:310 | ||
| 539 | +msgid "PF7" | ||
| 540 | +msgstr "PF7" | ||
| 541 | + | ||
| 542 | +#: ui/10keypad.xml:311 | ||
| 543 | +msgid "PF8" | ||
| 544 | +msgstr "PF8" | ||
| 545 | + | ||
| 546 | +#: ui/10keypad.xml:312 | ||
| 547 | +msgid "PF9" | ||
| 548 | +msgstr "PF9" | ||
| 549 | + | ||
| 463 | #: proxy.c:363 | 550 | #: proxy.c:363 |
| 464 | msgid "Passthru Proxy: send error" | 551 | msgid "Passthru Proxy: send error" |
| 465 | msgstr "Passthru Proxy: Erro ao enviar" | 552 | msgstr "Passthru Proxy: Erro ao enviar" |
| @@ -567,7 +654,7 @@ msgstr "RPQ: Erro em gethostbyname" | @@ -567,7 +654,7 @@ msgstr "RPQ: Erro em gethostbyname" | ||
| 567 | msgid "Receive file" | 654 | msgid "Receive file" |
| 568 | msgstr "Receber arquivo" | 655 | msgstr "Receber arquivo" |
| 569 | 656 | ||
| 570 | -#: ui/99debug.xml:313 | 657 | +#: ui/99debug.xml:411 |
| 571 | msgid "Reload buffer contents" | 658 | msgid "Reload buffer contents" |
| 572 | msgstr "Recarregar conteúdo do buffer" | 659 | msgstr "Recarregar conteúdo do buffer" |
| 573 | 660 | ||
| @@ -579,6 +666,11 @@ msgstr "Remover seleção" | @@ -579,6 +666,11 @@ msgstr "Remover seleção" | ||
| 579 | msgid "Reselect" | 666 | msgid "Reselect" |
| 580 | msgstr "Reselecionar" | 667 | msgstr "Reselecionar" |
| 581 | 668 | ||
| 669 | +#: ui/10keypad.xml:345 | ||
| 670 | +#, fuzzy | ||
| 671 | +msgid "Reset" | ||
| 672 | +msgstr "Reselecionar" | ||
| 673 | + | ||
| 582 | #: ui/00default.xml:123 | 674 | #: ui/00default.xml:123 |
| 583 | msgid "Resize on alternate screen" | 675 | msgid "Resize on alternate screen" |
| 584 | msgstr "Mudar tamanho do terminal em tela alternativa" | 676 | msgstr "Mudar tamanho do terminal em tela alternativa" |
| @@ -752,7 +844,7 @@ msgstr "Salvar tela" | @@ -752,7 +844,7 @@ msgstr "Salvar tela" | ||
| 752 | msgid "Save selected" | 844 | msgid "Save selected" |
| 753 | msgstr "Salvar seleção" | 845 | msgstr "Salvar seleção" |
| 754 | 846 | ||
| 755 | -#: ui/99debug.xml:305 | 847 | +#: ui/99debug.xml:403 |
| 756 | msgid "Screen Trace" | 848 | msgid "Screen Trace" |
| 757 | msgstr "Trace de tela" | 849 | msgstr "Trace de tela" |
| 758 | 850 | ||
| @@ -796,7 +888,7 @@ msgstr "Configurações" | @@ -796,7 +888,7 @@ msgstr "Configurações" | ||
| 796 | msgid "Show Underline" | 888 | msgid "Show Underline" |
| 797 | msgstr "Mostrar sublinhado" | 889 | msgstr "Mostrar sublinhado" |
| 798 | 890 | ||
| 799 | -#: ui/99debug.xml:312 | 891 | +#: ui/99debug.xml:410 |
| 800 | msgid "Show test pattern" | 892 | msgid "Show test pattern" |
| 801 | msgstr "Mostrar padrão de teste" | 893 | msgstr "Mostrar padrão de teste" |
| 802 | 894 | ||
| @@ -842,7 +934,7 @@ msgstr "Esta versão do %s foi gerada sem suporte para conexões seguras (SSL)." | @@ -842,7 +934,7 @@ msgstr "Esta versão do %s foi gerada sem suporte para conexões seguras (SSL)." | ||
| 842 | msgid "Toolbar" | 934 | msgid "Toolbar" |
| 843 | msgstr "Barra de ferramentas" | 935 | msgstr "Barra de ferramentas" |
| 844 | 936 | ||
| 845 | -#: ui/99debug.xml:304 | 937 | +#: ui/99debug.xml:402 |
| 846 | msgid "Trace" | 938 | msgid "Trace" |
| 847 | msgstr "Trace" | 939 | msgstr "Trace" |
| 848 | 940 | ||
| @@ -945,7 +1037,7 @@ msgstr "Unsupported socks 4 proxy" | @@ -945,7 +1037,7 @@ msgstr "Unsupported socks 4 proxy" | ||
| 945 | msgid "Use +/- for field navigation" | 1037 | msgid "Use +/- for field navigation" |
| 946 | msgstr "Usar teclas +/- para navegar por campos" | 1038 | msgstr "Usar teclas +/- para navegar por campos" |
| 947 | 1039 | ||
| 948 | -#: ui/99debug.xml:307 | 1040 | +#: ui/99debug.xml:405 |
| 949 | msgid "View Field Delimiters" | 1041 | msgid "View Field Delimiters" |
| 950 | msgstr "Mostrar delimitadores de campo" | 1042 | msgstr "Mostrar delimitadores de campo" |
| 951 | 1043 |
pw3270.nsi.in
| @@ -75,6 +75,7 @@ SubSection "@PACKAGE@" SecMain | @@ -75,6 +75,7 @@ SubSection "@PACKAGE@" SecMain | ||
| 75 | CreateDirectory "$INSTDIR\ui" | 75 | CreateDirectory "$INSTDIR\ui" |
| 76 | 76 | ||
| 77 | file "/oname=$INSTDIR\ui\00default.xml" "ui\00default.xml" | 77 | file "/oname=$INSTDIR\ui\00default.xml" "ui\00default.xml" |
| 78 | + file "/oname=$INSTDIR\ui\10keypad.xml" "ui\10keypad.xml" | ||
| 78 | 79 | ||
| 79 | # Locale files | 80 | # Locale files |
| 80 | CreateDirectory "$INSTDIR\@localedir@\pt_BR\LC_MESSAGES" | 81 | CreateDirectory "$INSTDIR\@localedir@\pt_BR\LC_MESSAGES" |
| @@ -149,10 +150,11 @@ Section /o "Software Development Kit" SecSDK | @@ -149,10 +150,11 @@ Section /o "Software Development Kit" SecSDK | ||
| 149 | CreateDirectory "$INSTDIR\sdk" | 150 | CreateDirectory "$INSTDIR\sdk" |
| 150 | CreateDirectory "$INSTDIR\sdk\include" | 151 | CreateDirectory "$INSTDIR\sdk\include" |
| 151 | CreateDirectory "$INSTDIR\sdk\include\lib3270" | 152 | CreateDirectory "$INSTDIR\sdk\include\lib3270" |
| 153 | + CreateDirectory "$INSTDIR\sdk\include\pw3270" | ||
| 152 | 154 | ||
| 153 | file "/oname=$INSTDIR\sdk\include\lib3270.h" "src\include\lib3270.h" | 155 | file "/oname=$INSTDIR\sdk\include\lib3270.h" "src\include\lib3270.h" |
| 154 | file "/oname=$INSTDIR\sdk\include\pw3270.h" "src\include\pw3270.h" | 156 | file "/oname=$INSTDIR\sdk\include\pw3270.h" "src\include\pw3270.h" |
| 155 | - file "/oname=$INSTDIR\sdk\include\v3270.h" "src\include\v3270.h" | 157 | + file "/oname=$INSTDIR\sdk\include\pw3270\v3270.h" "src\include\pw3270\v3270.h" |
| 156 | 158 | ||
| 157 | file "/oname=$INSTDIR\sdk\include\lib3270\config.h" "src\include\lib3270\config.h" | 159 | file "/oname=$INSTDIR\sdk\include\lib3270\config.h" "src\include\lib3270\config.h" |
| 158 | file "/oname=$INSTDIR\sdk\include\lib3270\rules.mak" "src\include\rules.mak" | 160 | file "/oname=$INSTDIR\sdk\include\lib3270\rules.mak" "src\include\rules.mak" |
src/include/pw3270/hllapi.h
| @@ -61,7 +61,12 @@ extern "C" { | @@ -61,7 +61,12 @@ extern "C" { | ||
| 61 | } HLLAPI_DATA; | 61 | } HLLAPI_DATA; |
| 62 | #pragma pack() | 62 | #pragma pack() |
| 63 | 63 | ||
| 64 | +#ifdef _WIN32 | ||
| 65 | + // http://www.mingw.org/wiki/Visual_Basic_DLL | ||
| 66 | + __declspec (dllexport) int __stdcall hllapi(const unsigned long *func, char *str, unsigned short *length, unsigned short *rc); | ||
| 67 | +#else | ||
| 64 | LIB3270_EXPORT int hllapi(const unsigned long *func, char *str, unsigned short *length, unsigned short *rc); | 68 | LIB3270_EXPORT int hllapi(const unsigned long *func, char *str, unsigned short *length, unsigned short *rc); |
| 69 | +#endif // _WIN32 | ||
| 65 | 70 | ||
| 66 | #ifdef __cplusplus | 71 | #ifdef __cplusplus |
| 67 | } /* end of extern "C" */ | 72 | } /* end of extern "C" */ |
src/plugins/remotectl/hllapi.c
| @@ -143,7 +143,11 @@ | @@ -143,7 +143,11 @@ | ||
| 143 | return result; | 143 | return result; |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | +#ifdef _WIN32 | ||
| 147 | + __declspec (dllexport) int __stdcall hllapi(const unsigned long *func, char *str, unsigned short *length, unsigned short *rc) | ||
| 148 | +#else | ||
| 146 | LIB3270_EXPORT int hllapi(const unsigned long *func, char *str, unsigned short *length, unsigned short *rc) | 149 | LIB3270_EXPORT int hllapi(const unsigned long *func, char *str, unsigned short *length, unsigned short *rc) |
| 150 | +#endif // _WIN32 | ||
| 147 | { | 151 | { |
| 148 | int result = 1; | 152 | int result = 1; |
| 149 | char * arg; | 153 | char * arg; |
src/pw3270/Makefile.in
| @@ -190,6 +190,7 @@ $(DEBDIR)/pw3270.install: Makefile | @@ -190,6 +190,7 @@ $(DEBDIR)/pw3270.install: Makefile | ||
| 190 | @echo "$(libdir)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@.@VERSION@" >> $@ | 190 | @echo "$(libdir)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@.@VERSION@" >> $@ |
| 191 | @echo "$(libdir)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@" >> $@ | 191 | @echo "$(libdir)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@" >> $@ |
| 192 | @echo "$(datarootdir)/$(PACKAGE_NAME)/ui/00default.xml" >> $@ | 192 | @echo "$(datarootdir)/$(PACKAGE_NAME)/ui/00default.xml" >> $@ |
| 193 | + @echo "$(datarootdir)/$(PACKAGE_NAME)/ui/10keypad.xml" >> $@ | ||
| 193 | @echo "$(datarootdir)/$(PACKAGE_NAME)/$(PACKAGE_NAME).png" >> $@ | 194 | @echo "$(datarootdir)/$(PACKAGE_NAME)/$(PACKAGE_NAME).png" >> $@ |
| 194 | @echo "$(datarootdir)/$(PACKAGE_NAME)/$(PACKAGE_NAME)-logo.png" >> $@ | 195 | @echo "$(datarootdir)/$(PACKAGE_NAME)/$(PACKAGE_NAME)-logo.png" >> $@ |
| 195 | 196 |