Commit ad95f222241c225a5c5aef0a6da5bf8a69d4b509
1 parent
e928e853
Exists in
master
and in
5 other branches
Ajustando dependencias do .deb, implementando plugin rexx
Showing
4 changed files
with
16 additions
and
5 deletions
Show diff stats
pw3270.dsc
@@ -4,7 +4,7 @@ Version: 5.0.0 | @@ -4,7 +4,7 @@ Version: 5.0.0 | ||
4 | Binary: pw3270 | 4 | Binary: pw3270 |
5 | Maintainer: Perry Werneck <perry.werneck@gmail.com> | 5 | Maintainer: Perry Werneck <perry.werneck@gmail.com> |
6 | Architecture: any | 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 | Files: | 8 | Files: |
9 | 00000000000000000000000000000000 000000 pw3270-5.0.tar.gz | 9 | 00000000000000000000000000000000 000000 pw3270-5.0.tar.gz |
10 | 10 |
src/plugins/rx3270/pluginmain.cc
@@ -71,6 +71,8 @@ | @@ -71,6 +71,8 @@ | ||
71 | LIB3270_EXPORT int pw3270_plugin_init(GtkWidget *window) | 71 | LIB3270_EXPORT int pw3270_plugin_init(GtkWidget *window) |
72 | { | 72 | { |
73 | session = new plugin(lib3270_get_default_session_handle()); | 73 | session = new plugin(lib3270_get_default_session_handle()); |
74 | + session->set_plugin(); | ||
75 | + trace("%s: Rexx object is %p",__FUNCTION__,session); | ||
74 | return 0; | 76 | return 0; |
75 | } | 77 | } |
76 | 78 |
src/plugins/rx3270/rx3270.h
@@ -92,10 +92,11 @@ | @@ -92,10 +92,11 @@ | ||
92 | rx3270(); | 92 | rx3270(); |
93 | virtual ~rx3270(); | 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 | virtual const char * get_version(void) = 0; | 101 | virtual const char * get_version(void) = 0; |
101 | virtual LIB3270_CSTATE get_cstate(void) = 0; | 102 | virtual LIB3270_CSTATE get_cstate(void) = 0; |
src/plugins/rx3270/rxapimain.cc
@@ -55,11 +55,14 @@ | @@ -55,11 +55,14 @@ | ||
55 | int librx3270_unloaded(void) __attribute__((destructor)); | 55 | int librx3270_unloaded(void) __attribute__((destructor)); |
56 | #endif | 56 | #endif |
57 | 57 | ||
58 | +/*--[ Globals ]--------------------------------------------------------------------------------------*/ | ||
59 | + | ||
58 | LIB3270_EXPORT RexxRoutineEntry rx3270_functions[]; | 60 | LIB3270_EXPORT RexxRoutineEntry rx3270_functions[]; |
59 | LIB3270_EXPORT RexxPackageEntry rx3270_package_entry; | 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 | /*--[ Implement ]------------------------------------------------------------------------------------*/ | 67 | /*--[ Implement ]------------------------------------------------------------------------------------*/ |
65 | 68 | ||
@@ -174,3 +177,8 @@ rx3270::~rx3270() | @@ -174,3 +177,8 @@ rx3270::~rx3270() | ||
174 | hSession = NULL; | 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 | +} |