From ad95f222241c225a5c5aef0a6da5bf8a69d4b509 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Wed, 3 Apr 2013 10:36:32 +0000 Subject: [PATCH] Ajustando dependencias do .deb, implementando plugin rexx --- pw3270.dsc | 2 +- src/plugins/rx3270/pluginmain.cc | 2 ++ src/plugins/rx3270/rx3270.h | 7 ++++--- src/plugins/rx3270/rxapimain.cc | 10 +++++++++- 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/pw3270.dsc b/pw3270.dsc index baa745f..e34abbf 100644 --- a/pw3270.dsc +++ b/pw3270.dsc @@ -4,7 +4,7 @@ Version: 5.0.0 Binary: pw3270 Maintainer: Perry Werneck Architecture: any -Build-Depends: debhelper (>= 7), autotools-dev, autoconf, libgtk-3-dev, gettext, libssl-dev, desktop-file-utils, libreoffice-dev, ure, imagemagick, librsvg2-bin +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 Files: 00000000000000000000000000000000 000000 pw3270-5.0.tar.gz diff --git a/src/plugins/rx3270/pluginmain.cc b/src/plugins/rx3270/pluginmain.cc index 8ddb512..cc7091f 100644 --- a/src/plugins/rx3270/pluginmain.cc +++ b/src/plugins/rx3270/pluginmain.cc @@ -71,6 +71,8 @@ LIB3270_EXPORT int pw3270_plugin_init(GtkWidget *window) { session = new plugin(lib3270_get_default_session_handle()); + session->set_plugin(); + trace("%s: Rexx object is %p",__FUNCTION__,session); return 0; } diff --git a/src/plugins/rx3270/rx3270.h b/src/plugins/rx3270/rx3270.h index 82ea259..66e9a3d 100644 --- a/src/plugins/rx3270/rx3270.h +++ b/src/plugins/rx3270/rx3270.h @@ -92,10 +92,11 @@ rx3270(); virtual ~rx3270(); - static rx3270 * get_default(void); + static rx3270 * get_default(void); + static void set_plugin(void); - char * get_3270_string(const char *str); - char * get_local_string(const char *str); + char * get_3270_string(const char *str); + char * get_local_string(const char *str); virtual const char * get_version(void) = 0; virtual LIB3270_CSTATE get_cstate(void) = 0; diff --git a/src/plugins/rx3270/rxapimain.cc b/src/plugins/rx3270/rxapimain.cc index 2fc8649..519c83b 100644 --- a/src/plugins/rx3270/rxapimain.cc +++ b/src/plugins/rx3270/rxapimain.cc @@ -55,11 +55,14 @@ int librx3270_unloaded(void) __attribute__((destructor)); #endif +/*--[ Globals ]--------------------------------------------------------------------------------------*/ + LIB3270_EXPORT RexxRoutineEntry rx3270_functions[]; LIB3270_EXPORT RexxPackageEntry rx3270_package_entry; - static rx3270 * hSession = NULL; + static rx3270 * hSession = NULL; + static bool plugin = false; /*--[ Implement ]------------------------------------------------------------------------------------*/ @@ -174,3 +177,8 @@ rx3270::~rx3270() hSession = NULL; } +void rx3270::set_plugin(void) +{ + trace("%s: Rexx API running as plugin",__FUNCTION__); + plugin = true; +} -- libgit2 0.21.2