Commit 5c7347232554f280efffb336c4d4fae8009235bb

Authored by Perry Werneck
1 parent af6dd3e1

Removendo includes da lib3270 do projeto do aplicativo.

@@ -48,3 +48,4 @@ resources.rc @@ -48,3 +48,4 @@ resources.rc
48 makeruntime.sh 48 makeruntime.sh
49 scripts 49 scripts
50 locale 50 locale
  51 +*.xz
@@ -401,8 +401,9 @@ dnl --------------------------------------------------------------------------- @@ -401,8 +401,9 @@ dnl ---------------------------------------------------------------------------
401 401
402 AC_ARG_WITH([libname], [AS_HELP_STRING([--with-libname], [Setup library name])], [ app_cv_libname="$withval" ],[ app_cv_libname="3270" ]) 402 AC_ARG_WITH([libname], [AS_HELP_STRING([--with-libname], [Setup library name])], [ app_cv_libname="$withval" ],[ app_cv_libname="3270" ])
403 403
  404 +AC_SUBST(LIB3270_LIBPATH,$ac_pwd/modules/lib3270/src/include)
404 405
405 -AC_SUBST(LIB3270_CFLAGS,-I$ac_pwd/src/include) 406 +AC_SUBST(LIB3270_CFLAGS,-I$ac_pwd/modules/lib3270/src/include)
406 AC_SUBST(LIB3270_LIBS,-l$app_cv_libname) 407 AC_SUBST(LIB3270_LIBS,-l$app_cv_libname)
407 AC_SUBST(PW3270_LIBS,-l$PACKAGE_TARNAME) 408 AC_SUBST(PW3270_LIBS,-l$PACKAGE_TARNAME)
408 409
src/include/lib3270/X11keysym.h
@@ -1,217 +0,0 @@ @@ -1,217 +0,0 @@
1 -/*  
2 - * Copyright 1999 by Paul Mattes.  
3 - * Permission to use, copy, modify, and distribute this software and its  
4 - * documentation for any purpose and without fee is hereby granted,  
5 - * provided that the above copyright notice appear in all copies and that  
6 - * both that copyright notice and this permission notice appear in  
7 - * supporting documentation.  
8 - *  
9 - * c3270, s3270 and tcl3270 are distributed in the hope that they will  
10 - * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of  
11 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the file LICENSE  
12 - * for more details.  
13 - */  
14 -  
15 -/* X11 keysyms used by c3270, s3270 and tcl3270 */  
16 -  
17 -#if !defined(_x11_keysym_h) /*[*/  
18 -#define _x11_keysym_h 1  
19 -  
20 -/* Latin-1 Keysyms */  
21 -#define XK_space 0x020  
22 -#define XK_exclam 0x021  
23 -#define XK_quotedbl 0x022  
24 -#define XK_numbersign 0x023  
25 -#define XK_dollar 0x024  
26 -#define XK_percent 0x025  
27 -#define XK_ampersand 0x026  
28 -#define XK_apostrophe 0x027  
29 -#define XK_quoteright 0x027  
30 -#define XK_parenleft 0x028  
31 -#define XK_parenright 0x029  
32 -#define XK_asterisk 0x02a  
33 -#define XK_plus 0x02b  
34 -#define XK_comma 0x02c  
35 -#define XK_minus 0x02d  
36 -#define XK_period 0x02e  
37 -#define XK_slash 0x02f  
38 -#define XK_0 0x030  
39 -#define XK_1 0x031  
40 -#define XK_2 0x032  
41 -#define XK_3 0x033  
42 -#define XK_4 0x034  
43 -#define XK_5 0x035  
44 -#define XK_6 0x036  
45 -#define XK_7 0x037  
46 -#define XK_8 0x038  
47 -#define XK_9 0x039  
48 -#define XK_colon 0x03a  
49 -#define XK_semicolon 0x03b  
50 -#define XK_less 0x03c  
51 -#define XK_equal 0x03d  
52 -#define XK_greater 0x03e  
53 -#define XK_question 0x03f  
54 -#define XK_at 0x040  
55 -#define XK_A 0x041  
56 -#define XK_B 0x042  
57 -#define XK_C 0x043  
58 -#define XK_D 0x044  
59 -#define XK_E 0x045  
60 -#define XK_F 0x046  
61 -#define XK_G 0x047  
62 -#define XK_H 0x048  
63 -#define XK_I 0x049  
64 -#define XK_J 0x04a  
65 -#define XK_K 0x04b  
66 -#define XK_L 0x04c  
67 -#define XK_M 0x04d  
68 -#define XK_N 0x04e  
69 -#define XK_O 0x04f  
70 -#define XK_P 0x050  
71 -#define XK_Q 0x051  
72 -#define XK_R 0x052  
73 -#define XK_S 0x053  
74 -#define XK_T 0x054  
75 -#define XK_U 0x055  
76 -#define XK_V 0x056  
77 -#define XK_W 0x057  
78 -#define XK_X 0x058  
79 -#define XK_Y 0x059  
80 -#define XK_Z 0x05a  
81 -#define XK_bracketleft 0x05b  
82 -#define XK_backslash 0x05c  
83 -#define XK_bracketright 0x05d  
84 -#define XK_asciicircum 0x05e  
85 -#define XK_underscore 0x05f  
86 -#define XK_grave 0x060  
87 -#define XK_quoteleft 0x060  
88 -#define XK_a 0x061  
89 -#define XK_b 0x062  
90 -#define XK_c 0x063  
91 -#define XK_d 0x064  
92 -#define XK_e 0x065  
93 -#define XK_f 0x066  
94 -#define XK_g 0x067  
95 -#define XK_h 0x068  
96 -#define XK_i 0x069  
97 -#define XK_j 0x06a  
98 -#define XK_k 0x06b  
99 -#define XK_l 0x06c  
100 -#define XK_m 0x06d  
101 -#define XK_n 0x06e  
102 -#define XK_o 0x06f  
103 -#define XK_p 0x070  
104 -#define XK_q 0x071  
105 -#define XK_r 0x072  
106 -#define XK_s 0x073  
107 -#define XK_t 0x074  
108 -#define XK_u 0x075  
109 -#define XK_v 0x076  
110 -#define XK_w 0x077  
111 -#define XK_x 0x078  
112 -#define XK_y 0x079  
113 -#define XK_z 0x07a  
114 -#define XK_braceleft 0x07b  
115 -#define XK_bar 0x07c  
116 -#define XK_braceright 0x07d  
117 -#define XK_asciitilde 0x07e  
118 -#define XK_nobreakspace 0x0a0  
119 -#define XK_exclamdown 0x0a1  
120 -#define XK_cent 0x0a2  
121 -#define XK_sterling 0x0a3  
122 -#define XK_currency 0x0a4  
123 -#define XK_yen 0x0a5  
124 -#define XK_brokenbar 0x0a6  
125 -#define XK_section 0x0a7  
126 -#define XK_diaeresis 0x0a8  
127 -#define XK_copyright 0x0a9  
128 -#define XK_ordfeminine 0x0aa  
129 -#define XK_guillemotleft 0x0ab  
130 -#define XK_notsign 0x0ac  
131 -#define XK_hyphen 0x0ad  
132 -#define XK_registered 0x0ae  
133 -#define XK_macron 0x0af  
134 -#define XK_degree 0x0b0  
135 -#define XK_plusminus 0x0b1  
136 -#define XK_twosuperior 0x0b2  
137 -#define XK_threesuperior 0x0b3  
138 -#define XK_acute 0x0b4  
139 -#define XK_mu 0x0b5  
140 -#define XK_paragraph 0x0b6  
141 -#define XK_periodcentered 0x0b7  
142 -#define XK_cedilla 0x0b8  
143 -#define XK_onesuperior 0x0b9  
144 -#define XK_masculine 0x0ba  
145 -#define XK_guillemotright 0x0bb  
146 -#define XK_onequarter 0x0bc  
147 -#define XK_onehalf 0x0bd  
148 -#define XK_threequarters 0x0be  
149 -#define XK_questiondown 0x0bf  
150 -#define XK_Agrave 0x0c0  
151 -#define XK_Aacute 0x0c1  
152 -#define XK_Acircumflex 0x0c2  
153 -#define XK_Atilde 0x0c3  
154 -#define XK_Adiaeresis 0x0c4  
155 -#define XK_Aring 0x0c5  
156 -#define XK_AE 0x0c6  
157 -#define XK_Ccedilla 0x0c7  
158 -#define XK_Egrave 0x0c8  
159 -#define XK_Eacute 0x0c9  
160 -#define XK_Ecircumflex 0x0ca  
161 -#define XK_Ediaeresis 0x0cb  
162 -#define XK_Igrave 0x0cc  
163 -#define XK_Iacute 0x0cd  
164 -#define XK_Icircumflex 0x0ce  
165 -#define XK_Idiaeresis 0x0cf  
166 -#define XK_ETH 0x0d0  
167 -#define XK_Eth 0x0d0  
168 -#define XK_Ntilde 0x0d1  
169 -#define XK_Ograve 0x0d2  
170 -#define XK_Oacute 0x0d3  
171 -#define XK_Ocircumflex 0x0d4  
172 -#define XK_Otilde 0x0d5  
173 -#define XK_Odiaeresis 0x0d6  
174 -#define XK_multiply 0x0d7  
175 -#define XK_Ooblique 0x0d8  
176 -#define XK_Ugrave 0x0d9  
177 -#define XK_Uacute 0x0da  
178 -#define XK_Ucircumflex 0x0db  
179 -#define XK_Udiaeresis 0x0dc  
180 -#define XK_Yacute 0x0dd  
181 -#define XK_THORN 0x0de  
182 -#define XK_Thorn 0x0de  
183 -#define XK_ssharp 0x0df  
184 -#define XK_agrave 0x0e0  
185 -#define XK_aacute 0x0e1  
186 -#define XK_acircumflex 0x0e2  
187 -#define XK_atilde 0x0e3  
188 -#define XK_adiaeresis 0x0e4  
189 -#define XK_aring 0x0e5  
190 -#define XK_ae 0x0e6  
191 -#define XK_ccedilla 0x0e7  
192 -#define XK_egrave 0x0e8  
193 -#define XK_eacute 0x0e9  
194 -#define XK_ecircumflex 0x0ea  
195 -#define XK_ediaeresis 0x0eb  
196 -#define XK_igrave 0x0ec  
197 -#define XK_iacute 0x0ed  
198 -#define XK_icircumflex 0x0ee  
199 -#define XK_idiaeresis 0x0ef  
200 -#define XK_eth 0x0f0  
201 -#define XK_ntilde 0x0f1  
202 -#define XK_ograve 0x0f2  
203 -#define XK_oacute 0x0f3  
204 -#define XK_ocircumflex 0x0f4  
205 -#define XK_otilde 0x0f5  
206 -#define XK_odiaeresis 0x0f6  
207 -#define XK_division 0x0f7  
208 -#define XK_oslash 0x0f8  
209 -#define XK_ugrave 0x0f9  
210 -#define XK_uacute 0x0fa  
211 -#define XK_ucircumflex 0x0fb  
212 -#define XK_udiaeresis 0x0fc  
213 -#define XK_yacute 0x0fd  
214 -#define XK_thorn 0x0fe  
215 -#define XK_ydiaeresis 0x0ff  
216 -  
217 -#endif /*]*/  
src/include/lib3270/action_table.h
@@ -1,91 +0,0 @@ @@ -1,91 +0,0 @@
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 actions.h 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 de Mendonça)  
27 - * licinio@bb.com.br (Licínio Luis Branco)  
28 - * kraucer@bb.com.br (Kraucer Fernandes Mazuco)  
29 - *  
30 - */  
31 -  
32 - /*  
33 - * Action call table.  
34 - *  
35 - * Usually this definitions are used to declare lib3270's action table but,  
36 - * if you redefine the creation macros it can be used to build a callback  
37 - * table for g_object_connect calls.  
38 - *  
39 - */  
40 -  
41 - /* Keyboard actions */  
42 - DECLARE_LIB3270_KEY_ACTION( enter )  
43 -  
44 - DECLARE_LIB3270_FKEY_ACTION( pfkey )  
45 - DECLARE_LIB3270_FKEY_ACTION( pakey )  
46 -  
47 - /* Cursor movement */  
48 - DECLARE_LIB3270_CURSOR_ACTION( up )  
49 - DECLARE_LIB3270_CURSOR_ACTION( down )  
50 - DECLARE_LIB3270_CURSOR_ACTION( left )  
51 - DECLARE_LIB3270_CURSOR_ACTION( right )  
52 - DECLARE_LIB3270_CURSOR_ACTION( newline )  
53 -  
54 - /* Misc actions */  
55 - DECLARE_LIB3270_ACTION( kybdreset )  
56 - DECLARE_LIB3270_ACTION( clear )  
57 - DECLARE_LIB3270_ACTION( eraseinput )  
58 -  
59 - DECLARE_LIB3270_ACTION( select_field )  
60 - DECLARE_LIB3270_ACTION( select_all )  
61 - DECLARE_LIB3270_ACTION( unselect )  
62 - DECLARE_LIB3270_ACTION( reselect )  
63 -  
64 - DECLARE_LIB3270_ACTION( firstfield )  
65 - DECLARE_LIB3270_ACTION( eraseeof )  
66 - DECLARE_LIB3270_ACTION( eraseeol )  
67 - DECLARE_LIB3270_ACTION( erase )  
68 - DECLARE_LIB3270_ACTION( delete )  
69 - DECLARE_LIB3270_ACTION( dup )  
70 - DECLARE_LIB3270_ACTION( fieldmark )  
71 -  
72 - DECLARE_LIB3270_ACTION( backspace )  
73 - DECLARE_LIB3270_ACTION( previousword )  
74 - DECLARE_LIB3270_ACTION( nextword )  
75 - DECLARE_LIB3270_ACTION( fieldend )  
76 -  
77 - DECLARE_LIB3270_ACTION( nextfield )  
78 - DECLARE_LIB3270_ACTION( previousfield )  
79 -  
80 - DECLARE_LIB3270_ACTION( attn )  
81 - DECLARE_LIB3270_ACTION( break )  
82 - DECLARE_LIB3270_ACTION( pastenext )  
83 -  
84 - DECLARE_LIB3270_ACTION( deleteword )  
85 - DECLARE_LIB3270_ACTION( deletefield )  
86 - DECLARE_LIB3270_ACTION( sysreq )  
87 -  
88 - DECLARE_LIB3270_ACTION( testpattern )  
89 - DECLARE_LIB3270_ACTION( charsettable )  
90 -  
91 -  
src/include/lib3270/actions.h
@@ -1,58 +0,0 @@ @@ -1,58 +0,0 @@
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 actions.h 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 de Mendonça)  
27 - * licinio@bb.com.br (Licínio Luis Branco)  
28 - * kraucer@bb.com.br (Kraucer Fernandes Mazuco)  
29 - * macmiranda@bb.com.br (Marco Aurélio Caldas Miranda)  
30 - *  
31 - */  
32 -  
33 -#ifdef __cplusplus  
34 - extern "C" {  
35 -#endif  
36 -  
37 - // Standard actions  
38 - #define DECLARE_LIB3270_ACTION( name ) LIB3270_EXPORT int lib3270_ ## name (H3270 *hSession);  
39 - #define LIB3270_ACTION( name ) LIB3270_EXPORT int lib3270_ ## name (H3270 *hSession)  
40 -  
41 - // Single key actions  
42 - #define DECLARE_LIB3270_KEY_ACTION( name ) LIB3270_EXPORT int lib3270_ ## name (H3270 *hSession);  
43 - #define LIB3270_KEY_ACTION( name ) LIB3270_EXPORT int lib3270_ ## name (H3270 *hSession)  
44 -  
45 - // Cursor actions  
46 - #define DECLARE_LIB3270_CURSOR_ACTION( name ) LIB3270_EXPORT int lib3270_cursor_ ## name (H3270 *hSession);  
47 - #define LIB3270_CURSOR_ACTION( name ) LIB3270_EXPORT int lib3270_cursor_ ## name (H3270 *hSession)  
48 -  
49 - // PF & PA key actions  
50 - #define DECLARE_LIB3270_FKEY_ACTION( name ) LIB3270_EXPORT int lib3270_ ## name (H3270 *hSession, int key);  
51 - #define LIB3270_FKEY_ACTION( name ) LIB3270_EXPORT int lib3270_ ## name (H3270 *hSession, int key)  
52 -  
53 - // Load action table entries  
54 - #include <lib3270/action_table.h>  
55 -  
56 -#ifdef __cplusplus  
57 - }  
58 -#endif  
src/include/lib3270/charset.h
@@ -1,74 +0,0 @@ @@ -1,74 +0,0 @@
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 charset.h 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 - * licinio@bb.com.br (Licínio Luis Branco)  
28 - * kraucer@bb.com.br (Kraucer Fernandes Mazuco)  
29 - *  
30 - */  
31 -  
32 -#ifndef LIB3270_CHARSET_H_INCLUDED  
33 -  
34 - #define LIB3270_CHARSET_H_INCLUDED 1  
35 -  
36 -#ifdef __cplusplus  
37 - extern "C" {  
38 -#endif  
39 -  
40 - struct lib3270_charset  
41 - {  
42 - char * host;  
43 - char * display;  
44 - unsigned long cgcsgid;  
45 -  
46 - // Translation tables  
47 - unsigned short ebc2asc[256];  
48 - unsigned short asc2ebc[256];  
49 -  
50 - unsigned short asc2uc[256];  
51 -  
52 - };  
53 -  
54 - typedef enum  
55 - {  
56 - CS_ONLY,  
57 - FT_ONLY,  
58 - BOTH  
59 - } lib3270_remap_scope;  
60 -  
61 - LIB3270_EXPORT int lib3270_set_host_charset(H3270 *hSession, const char *name);  
62 - LIB3270_EXPORT const char * lib3270_get_host_charset(H3270 *hSession);  
63 - LIB3270_EXPORT void lib3270_reset_charset(H3270 *hSession, const char * host, const char * display, unsigned long cgcsgid);  
64 -  
65 - LIB3270_EXPORT void lib3270_remap_char(H3270 *hSession, unsigned short ebc, unsigned short iso, lib3270_remap_scope scope, unsigned char one_way);  
66 - LIB3270_EXPORT const char * lib3270_ebc2asc(H3270 *hSession, unsigned char *buffer, int sz);  
67 - LIB3270_EXPORT const char * lib3270_asc2ebc(H3270 *hSession, unsigned char *buffer, int sz);  
68 -  
69 -  
70 -#ifdef __cplusplus  
71 - }  
72 -#endif  
73 -  
74 -#endif // LIB3270_CHARSET_H_INCLUDED  
src/include/lib3270/filetransfer.h
@@ -1,194 +0,0 @@ @@ -1,194 +0,0 @@
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 filetransfer.h 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 de Mendonça)  
27 - * licinio@bb.com.br (Licínio Luis Branco)  
28 - * kraucer@bb.com.br (Kraucer Fernandes Mazuco)  
29 - * macmiranda@bb.com.br (Marco Aurélio Caldas Miranda)  
30 - *  
31 - */  
32 -  
33 -#ifndef LIB3270_FILETRANSFER_INCLUDED  
34 -  
35 - #define LIB3270_FILETRANSFER_INCLUDED 1  
36 - #include <stdio.h>  
37 - #include <sys/time.h>  
38 - #include <lib3270/charset.h>  
39 -  
40 - typedef enum _lib3270_FT_OPTION  
41 - {  
42 - LIB3270_FT_OPTION_SEND = 0x0000,  
43 -  
44 - LIB3270_FT_OPTION_RECEIVE = 0x0001,  
45 - LIB3270_FT_OPTION_ASCII = 0x0002, ///< @brief Convert to ascii  
46 - LIB3270_FT_OPTION_CRLF = 0x0004, ///< @brief Add crlf to each line  
47 - LIB3270_FT_OPTION_APPEND = 0x0008,  
48 - LIB3270_FT_OPTION_REMAP = 0x0010, ///< @brief Remap ASCII<->EBCDIC  
49 - LIB3270_FT_OPTION_UNIX = 0x0020, ///< @brief Unix text file  
50 -  
51 - LIB3270_FT_RECORD_FORMAT_DEFAULT = 0x0000,  
52 - LIB3270_FT_RECORD_FORMAT_FIXED = 0x0100,  
53 - LIB3270_FT_RECORD_FORMAT_VARIABLE = 0x0200,  
54 - LIB3270_FT_RECORD_FORMAT_UNDEFINED = 0x0300,  
55 -  
56 - LIB3270_FT_ALLOCATION_UNITS_DEFAULT = 0x0000,  
57 - LIB3270_FT_ALLOCATION_UNITS_TRACKS = 0x1000,  
58 - LIB3270_FT_ALLOCATION_UNITS_CYLINDERS = 0x2000,  
59 - LIB3270_FT_ALLOCATION_UNITS_AVBLOCK = 0x3000  
60 -  
61 - } LIB3270_FT_OPTION;  
62 -  
63 - #define LIB3270_FT_ALLOCATION_UNITS_MASK LIB3270_FT_ALLOCATION_UNITS_AVBLOCK  
64 - #define LIB3270_FT_RECORD_FORMAT_MASK LIB3270_FT_RECORD_FORMAT_UNDEFINED  
65 -  
66 - typedef enum _lib3270_ft_value  
67 - {  
68 -  
69 - LIB3270_FT_VALUE_LRECL,  
70 - LIB3270_FT_VALUE_BLKSIZE,  
71 - LIB3270_FT_VALUE_PRIMSPACE,  
72 - LIB3270_FT_VALUE_SECSPACE,  
73 - LIB3270_FT_VALUE_DFT,  
74 -  
75 - LIB3270_FT_VALUE_COUNT  
76 -  
77 - } LIB3270_FT_VALUE;  
78 -  
79 - typedef enum _lib3270_ft_state  
80 - {  
81 - LIB3270_FT_STATE_NONE, /**< No transfer in progress */  
82 - LIB3270_FT_STATE_AWAIT_ACK, /**< IND$FILE sent, awaiting acknowledgement message */  
83 - LIB3270_FT_STATE_RUNNING, /**< Ack received, data flowing */  
84 - LIB3270_FT_STATE_ABORT_WAIT, /**< Awaiting chance to send an abort */  
85 - LIB3270_FT_STATE_ABORT_SENT /**< Abort sent; awaiting response */  
86 - } LIB3270_FT_STATE;  
87 -  
88 - #define LIB3270_XLATE_NBUF 4  
89 -  
90 - struct lib3270_ft_callbacks  
91 - {  
92 - void (*complete)(H3270 *hSession, unsigned long length,double kbytes_sec,const char *msg, void *userdata);  
93 - void (*failed)(H3270 *hSession, unsigned long length,double kbytes_sec,const char *msg, void *userdata);  
94 - void (*message)(H3270 *hSession, const char *msg, void *userdata);  
95 - void (*update)(H3270 *hSession, unsigned long current, unsigned long length, double kbytes_sec, void *userdata);  
96 - void (*running)(H3270 *hSession, int is_cut, void *userdata);  
97 - void (*aborting)(H3270 *hSession, void *userdata);  
98 - void (*state_changed)(H3270 *hSession, LIB3270_FT_STATE state, const char *text, void *userdata);  
99 - };  
100 -  
101 - /**  
102 - * @brief File transfer data.  
103 - *  
104 - */  
105 - struct _h3270ft  
106 - {  
107 - struct lib3270_ft_callbacks cbk; ///< @brief Callback table - Always the first one.  
108 -  
109 - int ft_last_cr : 1; ///< @brief CR was last char in local file  
110 - int remap_flag : 1; ///< @brief Remap ASCII<->EBCDIC  
111 - int cr_flag : 1; ///< @brief Add crlf to each line  
112 - int unix_text : 1; ///< @brief Following the convention for UNIX text files.  
113 - int message_flag : 1; ///< @brief Open Request for msg received  
114 - int ascii_flag : 1; ///< @brief Convert to ascii  
115 - int ft_is_cut : 1; ///< @brief File transfer is CUT-style  
116 - int dft_eof : 1;  
117 -  
118 -  
119 - H3270 * host;  
120 - void * user_data; ///< @brief File transfer dialog handle  
121 - FILE * local_file; ///< @brief File descriptor for local file  
122 - unsigned long length; ///< @brief File length  
123 -  
124 - LIB3270_FT_STATE state;  
125 - LIB3270_FT_OPTION flags;  
126 -  
127 - int lrecl;  
128 - int blksize;  
129 - int primspace;  
130 - int secspace;  
131 - int dft;  
132 -  
133 - unsigned long ft_length; ///< Length of transfer  
134 -  
135 - struct timeval starting_time; ///< Starting time  
136 -  
137 - const char * local; ///< Local filename  
138 - const char * remote; ///< Remote filename  
139 -  
140 - // ft_dft.c  
141 - char * abort_string;  
142 - unsigned long recnum;  
143 - unsigned char * dft_savebuf;  
144 - int dft_savebuf_len;  
145 - int dft_savebuf_max;  
146 -  
147 - // ft_cut.c  
148 - int quadrant;  
149 - unsigned long expanded_length;  
150 - char * saved_errmsg;  
151 - int xlate_buffered; ///< buffer count  
152 - int xlate_buf_ix; ///< buffer index  
153 - unsigned char xlate_buf[LIB3270_XLATE_NBUF]; ///< buffer  
154 -  
155 - // Charset  
156 - struct lib3270_charset charset;  
157 -  
158 - };  
159 -  
160 -  
161 -  
162 - /**  
163 - * Create a new file transfer session.  
164 - *  
165 - * @param session  
166 - * @param flags  
167 - * @param local  
168 - * @param remote  
169 - * @param lrecl  
170 - * @param blksize  
171 - * @param primspace  
172 - * @param secspace  
173 - * @param dft  
174 - * @param msg Pointer to receive message text.  
175 - *  
176 - * @return Filetransfer callback table  
177 - *  
178 - */  
179 - LIB3270_EXPORT H3270FT * lib3270_ft_new(H3270 *hSession, LIB3270_FT_OPTION flags, const char *local, const char *remote, int lrecl, int blksize, int primspace, int secspace, int dft, const char **msg);  
180 -  
181 - LIB3270_EXPORT int lib3270_ft_start(H3270 *hSession);  
182 - LIB3270_EXPORT int lib3270_ft_destroy(H3270 *hSession);  
183 -  
184 - LIB3270_EXPORT int lib3270_ft_cancel(H3270 *hSession, int force);  
185 -  
186 - LIB3270_EXPORT void lib3270_ft_set_user_data(H3270 *h, void *ptr);  
187 - LIB3270_EXPORT void * lib3270_ft_get_user_data(H3270 *h);  
188 -  
189 - LIB3270_EXPORT LIB3270_FT_STATE lib3270_get_ft_state(H3270 *session);  
190 -  
191 - LIB3270_EXPORT struct lib3270_ft_callbacks * lib3270_get_ft_callbacks(H3270 *session, unsigned short sz);  
192 -  
193 -  
194 -#endif // LIB3270_FILETRANSFER_INCLUDED  
src/include/lib3270/html.h
@@ -1,53 +0,0 @@ @@ -1,53 +0,0 @@
1 -/*  
2 - * "Software G3270, 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 html.h e possui - linhas de código.  
22 - *  
23 - * Contatos:  
24 - *  
25 - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)  
26 - *  
27 - */  
28 -  
29 -#ifndef LIB3270_HTML_H_INCLUDED  
30 -  
31 - #define LIB3270_HTML_H_INCLUDED 1  
32 -  
33 -#ifdef __cplusplus  
34 - extern "C" {  
35 -#endif  
36 -  
37 - typedef enum _lib3270_html_option  
38 - {  
39 - LIB3270_HTML_OPTION_ALL = 0x0001,  
40 - LIB3270_HTML_OPTION_HEADERS = 0x0002,  
41 - LIB3270_HTML_OPTION_FORM = 0x0004,  
42 -  
43 - } LIB3270_HTML_OPTION;  
44 -  
45 -  
46 - LIB3270_EXPORT char * lib3270_get_as_html(H3270 *session, LIB3270_HTML_OPTION option);  
47 -  
48 -#ifdef __cplusplus  
49 - }  
50 -#endif  
51 -  
52 -#endif // LIB3270_HTML_H_INCLUDED  
53 -  
src/include/lib3270/internals.h
@@ -1,48 +0,0 @@ @@ -1,48 +0,0 @@
1 -/*  
2 - * "Software G3270, 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 internals.h e possui - linhas de código.  
22 - *  
23 - * Contatos:  
24 - *  
25 - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck)  
26 - *  
27 - */  
28 -  
29 -#ifndef LIB3270_INTERNALS_H_INCLUDED  
30 -  
31 - #define LIB3270_INTERNALS_H_INCLUDED 1  
32 -  
33 -#ifdef __cplusplus  
34 - extern "C" {  
35 -#endif  
36 -  
37 - LIB3270_EXPORT void lib3270_data_recv(H3270 *hSession, size_t nr, const unsigned char *netrbuf);  
38 - LIB3270_EXPORT void lib3270_set_disconnected(H3270 *hSession);  
39 - LIB3270_EXPORT void lib3270_set_connected(H3270 *hSession);  
40 - LIB3270_EXPORT void lib3270_setup_session(H3270 *session);  
41 -  
42 -  
43 -#ifdef __cplusplus  
44 - }  
45 -#endif  
46 -  
47 -#endif // LIB3270_HTML_H_INCLUDED  
48 -  
src/include/lib3270/log.h
@@ -1,80 +0,0 @@ @@ -1,80 +0,0 @@
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 log.h 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 - */  
29 -  
30 - #ifndef LIB3270_LOG_H_INCLUDED  
31 -  
32 - #include <stdarg.h>  
33 -  
34 - #define LIB3270_LOG_H_INCLUDED 1  
35 -  
36 - #ifdef ANDROID  
37 -  
38 - #include <android/log.h>  
39 -  
40 - #define DEBUG 1  
41 -  
42 - #define lib3270_write_log(s,m,f,...) __android_log_print(ANDROID_LOG_VERBOSE, PACKAGE_NAME, f "\n", __VA_ARGS__ )  
43 - #define lib3270_write_rc(s,m,r,f,...) __android_log_print(ANDROID_LOG_VERBOSE, PACKAGE_NAME, f "\n", __VA_ARGS__ )  
44 - #define lib3270_write_va_log(s,m,f,a) __android_log_vprint(ANDROID_LOG_VERBOSE, PACKAGE_NAME, f "\n", a)  
45 -  
46 - // #define trace( fmt, ... ) __android_log_print(ANDROID_LOG_DEBUG, PACKAGE_NAME, "%s(%d) " fmt "\n", __FILE__, __LINE__, __VA_ARGS__ );  
47 - #define trace(x, ...) // __VA_ARGS__  
48 -  
49 - #else  
50 -  
51 - #ifdef __cplusplus  
52 - extern "C" {  
53 - #endif  
54 -  
55 - LIB3270_EXPORT void lib3270_set_log_handler(void (*loghandler)(H3270 *, const char *, int, const char *, va_list));  
56 - LIB3270_EXPORT int lib3270_write_log(H3270 *session, const char *module, const char *fmt, ...) LIB3270_GNUC_FORMAT(3,4);  
57 - LIB3270_EXPORT int lib3270_write_rc(H3270 *session, const char *module, int rc, const char *fmt, ...) LIB3270_GNUC_FORMAT(4,5);  
58 - LIB3270_EXPORT void lib3270_write_va_log(H3270 *session, const char *module, const char *fmt, va_list arg);  
59 -  
60 - #ifdef DEBUG  
61 - #include <stdio.h>  
62 - #undef trace  
63 - #define trace( fmt, ... ) fprintf(stderr, "%s(%d) " fmt "\n", __FILE__, __LINE__, __VA_ARGS__ ); fflush(stderr);  
64 - #define debug( fmt, ... ) fprintf(stderr, "%s(%d) " fmt "\n", __FILE__, __LINE__, __VA_ARGS__ ); fflush(stderr);  
65 - #else  
66 - #undef trace  
67 - #define trace(x, ...) // __VA_ARGS__  
68 - #define debug(x, ...) // __VA_ARGS__  
69 - #endif  
70 -  
71 - #ifdef __cplusplus  
72 - }  
73 - #endif  
74 -  
75 - #endif // ANDROID  
76 -  
77 -  
78 - #endif // LIB3270_LOG_H_INCLUDED  
79 -  
80 -  
src/include/lib3270/macros.h
@@ -1,36 +0,0 @@ @@ -1,36 +0,0 @@
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 macros.h 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 de Mendonça)  
27 - * licinio@bb.com.br (Licínio Luis Branco)  
28 - * kraucer@bb.com.br (Kraucer Fernandes Mazuco)  
29 - * macmiranda@bb.com.br (Marco Aurélio Caldas Miranda)  
30 - *  
31 - */  
32 -  
33 - #define LIB3270_MACRO( name ) LIB3270_EXPORT char * lib3270_macro_ ## name (H3270 *hSession, int argc, const char **argv)  
34 -  
35 - LIB3270_EXPORT char * lib3270_run_macro(H3270 *session, const char **argv);  
36 -  
src/include/lib3270/popup.h
@@ -1,76 +0,0 @@ @@ -1,76 +0,0 @@
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 api.h e possui 444 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 de Mendonça)  
27 - * licinio@bb.com.br (Licínio Luis Branco)  
28 - * kraucer@bb.com.br (Kraucer Fernandes Mazuco)  
29 - *  
30 - */  
31 -  
32 -#ifndef LIB3270_POPUP_INCLUDED  
33 -  
34 - #define LIB3270_POPUP_INCLUDED 1  
35 -  
36 -#ifdef __cplusplus  
37 - extern "C" {  
38 -#endif  
39 -  
40 - /**  
41 - * Notification message types.  
42 - *  
43 - */  
44 - typedef enum _LIB3270_NOTIFY  
45 - {  
46 - LIB3270_NOTIFY_INFO, /**< Simple information dialog */  
47 - LIB3270_NOTIFY_WARNING,  
48 - LIB3270_NOTIFY_ERROR,  
49 - LIB3270_NOTIFY_CRITICAL, /**< Critical error, user can abort application */  
50 -  
51 - LIB3270_NOTIFY_USER /**< Reserved, always the last one */  
52 - } LIB3270_NOTIFY;  
53 -  
54 - LIB3270_EXPORT void lib3270_set_popup_handler(int (*popup_handler)(H3270 *, void *, LIB3270_NOTIFY, const char *, const char *, const char *, va_list));  
55 -  
56 - /**  
57 - * Pop up an error dialog, based on an error number.  
58 - *  
59 - * @param hSession Session handle  
60 - * @param errn Error number (errno).  
61 - * @param fmt Message format  
62 - * @param ... Arguments for message  
63 - */  
64 - LIB3270_EXPORT void lib3270_popup_an_errno(H3270 *hSession, int errn, const char *fmt, ...);  
65 -  
66 - LIB3270_EXPORT void lib3270_popup_dialog(H3270 *session, LIB3270_NOTIFY id , const char *title, const char *message, const char *fmt, ...);  
67 -  
68 - LIB3270_EXPORT void lib3270_popup_va(H3270 *session, LIB3270_NOTIFY id , const char *title, const char *message, const char *fmt, va_list);  
69 -  
70 -#ifdef __cplusplus  
71 - }  
72 -#endif  
73 -  
74 -#endif // LIB3270_POPUP_INCLUDED  
75 -  
76 -  
src/include/lib3270/selection.h
@@ -1,153 +0,0 @@ @@ -1,153 +0,0 @@
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 selection.h 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 - * licinio@bb.com.br (Licínio Luis Branco)  
28 - * kraucer@bb.com.br (Kraucer Fernandes Mazuco)  
29 - *  
30 - */  
31 -  
32 - #ifndef LIB3270_SELECTION_H_INCLUDED  
33 -  
34 - #define LIB3270_SELECTION_H_INCLUDED 1  
35 -  
36 - LIB3270_EXPORT int lib3270_unselect(H3270 *session);  
37 - LIB3270_EXPORT void lib3270_select_to(H3270 *session, int baddr);  
38 - LIB3270_EXPORT int lib3270_select_word_at(H3270 *session, int baddr);  
39 - LIB3270_EXPORT int lib3270_select_field_at(H3270 *session, int baddr);  
40 - LIB3270_EXPORT int lib3270_select_field(H3270 *session);  
41 - LIB3270_EXPORT int lib3270_select_all(H3270 *session);  
42 -  
43 - /**  
44 - * "Paste" supplied string.  
45 - *  
46 - * @param h Session handle.  
47 - * @param str String to paste.  
48 - *  
49 - * @see lib3270_pastenext.  
50 - *  
51 - * @return Non 0 if there's more to paste with lib3270_pastenext  
52 - *  
53 - */  
54 - LIB3270_EXPORT int lib3270_paste(H3270 *h, const unsigned char *str);  
55 -  
56 - /**  
57 - * Paste remaining string.  
58 - *  
59 - * @param h Session handle.  
60 - *  
61 - * @see lib3270_paste.  
62 - *  
63 - * @return Non 0 if there's more to paste.  
64 - *  
65 - */  
66 - LIB3270_EXPORT int lib3270_pastenext(H3270 *h);  
67 -  
68 - /**  
69 - * Move selected box 1 char in the selected direction.  
70 - *  
71 - * @param h Session handle.  
72 - * @param dir Direction to move  
73 - *  
74 - * @return 0 if the movement can be done, non zero if failed.  
75 - */  
76 - LIB3270_EXPORT int lib3270_move_selection(H3270 *h, LIB3270_DIRECTION dir);  
77 -  
78 - /**  
79 - * Move selected box.  
80 - *  
81 - * @param h Session handle.  
82 - * @param from Address of origin position inside the selected buffer.  
83 - * @param to Address of the new origin position.  
84 - *  
85 - * @return The new origin position.  
86 - *  
87 - */  
88 - LIB3270_EXPORT int lib3270_move_selected_area(H3270 *h, int from, int to);  
89 -  
90 - /**  
91 - * Drag selected region.  
92 - *  
93 - * Move or resize selected box according to the selection flags.  
94 - *  
95 - * @param h Session handle.  
96 - * @param flag Selection flag.  
97 - * @param origin Reference position (got from mouse button down or other move action).  
98 - * @param baddr New position.  
99 - *  
100 - * @return The new reference position.  
101 - *  
102 - */  
103 - LIB3270_EXPORT int lib3270_drag_selection(H3270 *h, unsigned char flag, int origin, int baddr);  
104 -  
105 - /**  
106 - * Gets the selected range of characters in the screen  
107 - *  
108 - * @param h Session handle.  
109 - * @param start return location for start of selection, as a character offset.  
110 - * @param end return location for end of selection, as a character offset.  
111 - *  
112 - * @return Non 0 if selection is non-empty  
113 - *  
114 - */  
115 - LIB3270_EXPORT int lib3270_get_selection_bounds(H3270 *hSession, int *start, int *end);  
116 -  
117 - /**  
118 - * Get bitmasked flag for the current selection.  
119 - *  
120 - * Calculate flags to help drawing of the correct mouse pointer over a selection.  
121 - *  
122 - * @param h Session handle.  
123 - * @param baddr Position.  
124 - *  
125 - * @return bitmask for mouse pointer.  
126 - */  
127 - LIB3270_EXPORT unsigned char lib3270_get_selection_flags(H3270 *h, int baddr);  
128 -  
129 - /**  
130 - * Get a string from required region.  
131 - *  
132 - * @param h Session handle.  
133 - * @param start_pos First char to get.  
134 - * @param end_pos Last char to get.  
135 - * @param all zero to get only selected chars.  
136 - *  
137 - * @return String with selected region (release it with free()  
138 - *  
139 - */  
140 - LIB3270_EXPORT char * lib3270_get_region(H3270 *h, int start_pos, int end_pos, unsigned char all);  
141 -  
142 -  
143 - /**  
144 - * Selects a range of characters in the screen.  
145 - *  
146 - * @param h Session handle.  
147 - * @param start_offset Start offset.  
148 - * @param end_offset : End offset.  
149 - *  
150 - */  
151 - LIB3270_EXPORT int lib3270_select_region(H3270 *h, int start, int end);  
152 -  
153 - #endif // LIB3270_SELECTION_H_INCLUDED  
src/include/lib3270/session.h
@@ -1,96 +0,0 @@ @@ -1,96 +0,0 @@
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 session.h 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 - */  
29 -  
30 - #ifndef LIB3270_SESSION_H_INCLUDED  
31 -  
32 - #define LIB3270_SESSION_H_INCLUDED 1  
33 -  
34 - #ifdef WIN32  
35 - #include <winsock2.h>  
36 - #include <windows.h>  
37 - #include <ws2tcpip.h>  
38 - #else  
39 - #include <sys/socket.h>  
40 - #endif // WIN32  
41 -  
42 - #include <lib3270/popup.h>  
43 -  
44 - struct lib3270_session_callbacks  
45 - {  
46 - int (*write)(H3270 *hSession, unsigned const char *buf, int len);  
47 - void (*disconnect)(H3270 *hSession);  
48 -  
49 - void (*configure)(H3270 *session, unsigned short rows, unsigned short cols);  
50 - void (*update)(H3270 *session, int baddr, unsigned char c, unsigned short attr, unsigned char cursor);  
51 - void (*changed)(H3270 *session, int offset, int len);  
52 - void (*display)(H3270 *session);  
53 - void (*set_width)(H3270 *session, int width);  
54 -  
55 - void (*update_cursor)(H3270 *session, unsigned short row, unsigned short col, unsigned char c, unsigned short attr);  
56 - void (*update_oia)(H3270 *session, LIB3270_FLAG id, unsigned char on);  
57 - void (*update_toggle)(H3270 *session, LIB3270_TOGGLE ix, unsigned char value, LIB3270_TOGGLE_TYPE reason, const char *name);  
58 - void (*update_luname)(H3270 *session, const char *name);  
59 - void (*update_status)(H3270 *session, LIB3270_MESSAGE id);  
60 - void (*update_connect)(H3270 *session, unsigned char connected);  
61 - void (*update_model)(H3270 *session, const char *name, int model, int rows, int cols);  
62 - void (*update_selection)(H3270 *session, int start, int end);  
63 - void (*update_ssl)(H3270 *session, LIB3270_SSL_STATE state);  
64 -  
65 - void (*set_timer)(H3270 *session, unsigned char on);  
66 - void (*erase)(H3270 *session);  
67 - void (*suspend)(H3270 *session);  
68 - void (*resume)(H3270 *session);  
69 - void (*cursor)(H3270 *session, LIB3270_POINTER id);  
70 - void (*set_selection)(H3270 *session, unsigned char on);  
71 - void (*ctlr_done)(H3270 *session);  
72 - void (*autostart)(H3270 *session);  
73 - int (*print)(H3270 *session);  
74 -  
75 - void (*message)(H3270 *session, LIB3270_NOTIFY id , const char *title, const char *message, const char *text);  
76 -  
77 - };  
78 -  
79 - /**  
80 - * Register application Handlers.  
81 - *  
82 - * @param cbk Structure with the application I/O handles to set.  
83 - *  
84 - * @return 0 if ok, error code if not.  
85 - *  
86 - */  
87 - int LIB3270_EXPORT lib3270_set_session_callbacks(const struct lib3270_callbacks *cbk);  
88 -  
89 - LIB3270_EXPORT int lib3270_getpeername(H3270 *hSession, struct sockaddr *addr, socklen_t *addrlen);  
90 - LIB3270_EXPORT int lib3270_getsockname(H3270 *hSession, struct sockaddr *addr, socklen_t *addrlen);  
91 -  
92 - LIB3270_EXPORT struct lib3270_session_callbacks * lib3270_get_session_callbacks(H3270 *session, unsigned short sz);  
93 -  
94 -#endif // LIB3270_SESSION_H_INCLUDED  
95 -  
96 -  
src/include/lib3270/trace.h
@@ -1,95 +0,0 @@ @@ -1,95 +0,0 @@
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 session.h 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 - * kraucer@bb.com.br (Kraucer Fernandes Mazuco)  
28 - *  
29 - */  
30 -  
31 -#ifndef LIB3270_TRACE_H_INCLUDED  
32 -  
33 - #define LIB3270_TRACE_H_INCLUDED 1  
34 -  
35 -#ifdef __cplusplus  
36 - extern "C" {  
37 -#endif  
38 -  
39 -#ifdef _WIN32  
40 - #define LIB3270_AS_PRINTF(a,b) /* __attribute__((format(printf, a, b))) */  
41 -#else  
42 - #define LIB3270_AS_PRINTF(a,b) __attribute__((format(printf, a, b)))  
43 -#endif  
44 -  
45 - typedef void (*LIB3270_TRACE_HANDLER)(H3270 *, const char *, va_list);  
46 -  
47 -  
48 - /**  
49 - * Set trace handle callback.  
50 - *  
51 - * @param handle Callback to write in trace file or show trace window (NULL send all trace to stdout/syslog).  
52 - * @param data User data to pass to the trace handler.  
53 - *  
54 - * @return Current trace handler  
55 - */  
56 - LIB3270_EXPORT LIB3270_TRACE_HANDLER lib3270_set_trace_handler( LIB3270_TRACE_HANDLER handler);  
57 -  
58 - /**  
59 - * Write on trace file.  
60 - *  
61 - * Write text on trace file, if DStrace is enabled.  
62 - *  
63 - * @param fmt String format.  
64 - * @param ... Arguments.  
65 - *  
66 - */  
67 - LIB3270_EXPORT void lib3270_write_dstrace(H3270 *session, const char *fmt, ...) LIB3270_AS_PRINTF(2,3);  
68 -  
69 - /**  
70 - * Write on trace file.  
71 - *  
72 - * Write text on trace file, if network trace is enabled.  
73 - *  
74 - * @param fmt String format.  
75 - * @param ... Arguments.  
76 - *  
77 - */  
78 - LIB3270_EXPORT void lib3270_write_nettrace(H3270 *session, const char *fmt, ...) LIB3270_AS_PRINTF(2,3);  
79 -  
80 - /**  
81 - * Write on trace file.  
82 - *  
83 - * Write text on trace file, if event is enabled.  
84 - *  
85 - * @param fmt String format.  
86 - * @param ... Arguments.  
87 - *  
88 - */  
89 - LIB3270_EXPORT void lib3270_trace_event(H3270 *session, const char *fmt, ...) LIB3270_AS_PRINTF(2,3);  
90 -  
91 -#ifdef __cplusplus  
92 - }  
93 -#endif  
94 -  
95 -#endif // LIB3270_TRACE_H_INCLUDED