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 | 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
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 | +} | ... | ... |