Commit ad95f222241c225a5c5aef0a6da5bf8a69d4b509

Authored by perry.werneck@gmail.com
1 parent e928e853

Ajustando dependencias do .deb, implementando plugin rexx

pw3270.dsc
... ... @@ -4,7 +4,7 @@ Version: 5.0.0
4 4 Binary: pw3270
5 5 Maintainer: Perry Werneck <perry.werneck@gmail.com>
6 6 Architecture: any
7   -Build-Depends: debhelper (>= 7), autotools-dev, autoconf, libgtk-3-dev, gettext, libssl-dev, desktop-file-utils, libreoffice-dev, ure, imagemagick, librsvg2-bin
  7 +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, libgtk-3-dev, gettext, libssl-dev, desktop-file-utils, libdbus-glib-1-dev, libreoffice-dev, ure, imagemagick, librsvg2-bin
8 8 Files:
9 9 00000000000000000000000000000000 000000 pw3270-5.0.tar.gz
10 10  
... ...
src/plugins/rx3270/pluginmain.cc
... ... @@ -71,6 +71,8 @@
71 71 LIB3270_EXPORT int pw3270_plugin_init(GtkWidget *window)
72 72 {
73 73 session = new plugin(lib3270_get_default_session_handle());
  74 + session->set_plugin();
  75 + trace("%s: Rexx object is %p",__FUNCTION__,session);
74 76 return 0;
75 77 }
76 78  
... ...
src/plugins/rx3270/rx3270.h
... ... @@ -92,10 +92,11 @@
92 92 rx3270();
93 93 virtual ~rx3270();
94 94  
95   - static rx3270 * get_default(void);
  95 + static rx3270 * get_default(void);
  96 + static void set_plugin(void);
96 97  
97   - char * get_3270_string(const char *str);
98   - char * get_local_string(const char *str);
  98 + char * get_3270_string(const char *str);
  99 + char * get_local_string(const char *str);
99 100  
100 101 virtual const char * get_version(void) = 0;
101 102 virtual LIB3270_CSTATE get_cstate(void) = 0;
... ...
src/plugins/rx3270/rxapimain.cc
... ... @@ -55,11 +55,14 @@
55 55 int librx3270_unloaded(void) __attribute__((destructor));
56 56 #endif
57 57  
  58 +/*--[ Globals ]--------------------------------------------------------------------------------------*/
  59 +
58 60 LIB3270_EXPORT RexxRoutineEntry rx3270_functions[];
59 61 LIB3270_EXPORT RexxPackageEntry rx3270_package_entry;
60 62  
61 63  
62   - static rx3270 * hSession = NULL;
  64 + static rx3270 * hSession = NULL;
  65 + static bool plugin = false;
63 66  
64 67 /*--[ Implement ]------------------------------------------------------------------------------------*/
65 68  
... ... @@ -174,3 +177,8 @@ rx3270::~rx3270()
174 177 hSession = NULL;
175 178 }
176 179  
  180 +void rx3270::set_plugin(void)
  181 +{
  182 + trace("%s: Rexx API running as plugin",__FUNCTION__);
  183 + plugin = true;
  184 +}
... ...