Commit 0c627cd7d2e56927bf94e550eaf4c4a924fabda2
1 parent
902bb6ab
Exists in
master
and in
3 other branches
Adding PA Key actions on the keytable.
Showing
3 changed files
with
88 additions
and
1 deletions
Show diff stats
src/core/actions/table.c
... | ... | @@ -91,6 +91,21 @@ |
91 | 91 | return lib3270_move_selection(hSession,LIB3270_DIR_RIGHT); |
92 | 92 | } |
93 | 93 | |
94 | + static int pa1(H3270 *hSession) | |
95 | + { | |
96 | + return lib3270_pakey(hSession,1); | |
97 | + } | |
98 | + | |
99 | + static int pa2(H3270 *hSession) | |
100 | + { | |
101 | + return lib3270_pakey(hSession,1); | |
102 | + } | |
103 | + | |
104 | + static int pa3(H3270 *hSession) | |
105 | + { | |
106 | + return lib3270_pakey(hSession,1); | |
107 | + } | |
108 | + | |
94 | 109 | /** |
95 | 110 | * @brief Get LIB3270 action table; |
96 | 111 | * |
... | ... | @@ -770,6 +785,51 @@ |
770 | 785 | .activatable = lib3270_is_disconnected |
771 | 786 | }, |
772 | 787 | |
788 | + // | |
789 | + // Misc Actions | |
790 | + // | |
791 | + { | |
792 | + .name = "PA1", | |
793 | + .type = LIB3270_ACTION_TYPE_GENERIC, | |
794 | + | |
795 | + .keys = NULL, | |
796 | + .icon = NULL, | |
797 | + .label = N_("PA1"), | |
798 | + .summary = N_( "Program Action 1" ), | |
799 | + .activate = pa1, | |
800 | + | |
801 | + .group = LIB3270_ACTION_GROUP_ONLINE, | |
802 | + .activatable = lib3270_is_connected | |
803 | + }, | |
804 | + | |
805 | + { | |
806 | + .name = "PA2", | |
807 | + .type = LIB3270_ACTION_TYPE_GENERIC, | |
808 | + | |
809 | + .keys = NULL, | |
810 | + .icon = NULL, | |
811 | + .label = N_("PA1"), | |
812 | + .summary = N_( "Program Action 2" ), | |
813 | + .activate = pa2, | |
814 | + | |
815 | + .group = LIB3270_ACTION_GROUP_ONLINE, | |
816 | + .activatable = lib3270_is_connected | |
817 | + }, | |
818 | + | |
819 | + { | |
820 | + .name = "PA3", | |
821 | + .type = LIB3270_ACTION_TYPE_GENERIC, | |
822 | + | |
823 | + .keys = NULL, | |
824 | + .icon = NULL, | |
825 | + .label = N_("PA1"), | |
826 | + .summary = N_( "Program Action 3" ), | |
827 | + .activate = pa3, | |
828 | + | |
829 | + .group = LIB3270_ACTION_GROUP_ONLINE, | |
830 | + .activatable = lib3270_is_connected | |
831 | + }, | |
832 | + | |
773 | 833 | { |
774 | 834 | .name = NULL, |
775 | 835 | } | ... | ... |
src/core/windows/connect.c
... | ... | @@ -320,7 +320,6 @@ int net_reconnect(H3270 *hSession, int seconds) |
320 | 320 | |
321 | 321 | if(hSession->ssl.enabled) |
322 | 322 | { |
323 | - debug("%s: Enabling SSL ****************************",__FUNCTION__); | |
324 | 323 | hSession->ssl.host = 1; |
325 | 324 | if(ssl_init(hSession)) |
326 | 325 | return errno = ENOTCONN; | ... | ... |
src/testprogram/testprogram.c
1 | +/* | |
2 | + * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | |
3 | + * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | |
4 | + * aplicativos mainframe. Registro no INPI sob o nome G3270. | |
5 | + * | |
6 | + * Copyright (C) <2008> <Banco do Brasil S.A.> | |
7 | + * | |
8 | + * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | |
9 | + * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | |
10 | + * Free Software Foundation. | |
11 | + * | |
12 | + * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | |
13 | + * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | |
14 | + * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | |
15 | + * obter mais detalhes. | |
16 | + * | |
17 | + * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | |
18 | + * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | |
19 | + * St, Fifth Floor, Boston, MA 02110-1301 USA | |
20 | + * | |
21 | + * Este programa está nomeado como connect.c e possui - linhas de código. | |
22 | + * | |
23 | + * Contatos: | |
24 | + * | |
25 | + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | |
26 | + * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | |
27 | + * | |
28 | + */ | |
1 | 29 | |
2 | 30 | #include <stdio.h> |
3 | 31 | #include <string.h> | ... | ... |