Commit 0c5fcd8ea4ff619d9ef9015203747841e9161f5b

Authored by Perry Werneck
1 parent 3cadc099
Exists in master and in 1 other branch develop

Incluindo parâmetro para remapear caracteres.

Showing 2 changed files with 60 additions and 1 deletions   Show diff stats
Makefile.in
... ... @@ -27,7 +27,7 @@
27 27 MODULE_NAME=v3270
28 28  
29 29 SOURCES=marshal.c widget.c oia.c iocallback.c keyboard.c draw.c mouse.c selection.c \
30   - accessible.c security.c macros.c hostselect.c properties.c
  30 + accessible.c security.c macros.c hostselect.c properties.c charset.c
31 31  
32 32 #---[ Configuration values ]-------------------------------------------------------------
33 33  
... ...
charset.c 0 → 100644
... ... @@ -0,0 +1,59 @@
  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.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 + */
  29 +
  30 + #include <v3270.h>
  31 + #include "private.h"
  32 + #include <lib3270/charset.h>
  33 +
  34 +
  35 + #define ERROR_DOMAIN g_quark_from_static_string(PACKAGE_NAME)
  36 +
  37 +/*--[ Implement ]------------------------------------------------------------------------------------*/
  38 +
  39 + struct parse
  40 + {
  41 + char * host;
  42 + char * display;
  43 + unsigned long cgcsgid;
  44 + };
  45 +
  46 + LIB3270_EXPORT void v3270_remap_from_xml(GtkWidget *widget, const gchar *path)
  47 + {
  48 + struct parse cfg;
  49 + v3270 * terminal = GTK_V3270(widget);
  50 +
  51 + memset(&cfg,0,sizeof(cfg));
  52 +
  53 +
  54 +
  55 + g_free(cfg.host);
  56 + g_free(cfg.display);
  57 +
  58 + }
  59 +
... ...