Commit 07b92b466d55bbb7097bbaa778d2e72290862933

Authored by Perry Werneck
1 parent b3a6ad33

Ajustes na API ooRexx

src/include/pw3270/class.h
... ... @@ -116,13 +116,7 @@
116 116  
117 117  
118 118  
119   -#if defined (HAVE_GNUC_VISIBILITY)
120   - class __attribute__((visibility("default"))) session
121   -#elif defined(WIN32)
122   - class __declspec (dllexport) session
123   -#else
124 119 class session
125   -#endif
126 120 {
127 121 public:
128 122  
... ...
src/plugins/rx3270/pluginmain.cc
... ... @@ -406,7 +406,9 @@ extern "C"
406 406 #if GTK_CHECK_VERSION(2,32,0)
407 407 g_mutex_init(&mutex);
408 408 #endif // GTK_CHECK_VERSION
409   - session::set_plugin(factory);
  409 +
  410 + rx3270_set_factory_method(factory);
  411 +
410 412 return 0;
411 413 }
412 414  
... ...
src/plugins/rx3270/rx3270.h
... ... @@ -41,6 +41,7 @@
41 41 #include <lib3270/popup.h>
42 42 #include <stdarg.h>
43 43 #include <gtk/gtk.h>
  44 + #include <pw3270/class.h>
44 45  
45 46 #ifndef ETIMEDOUT
46 47 #define ETIMEDOUT -1
... ... @@ -150,6 +151,7 @@
150 151 #endif
151 152  
152 153 LIB3270_EXPORT void rx3270_set_package_option(RexxOption *option);
  154 + LIB3270_EXPORT void rx3270_set_factory_method(PW3270_NAMESPACE::session * (*)(const char *));
153 155  
154 156 #ifdef __cplusplus
155 157 }
... ...
src/plugins/rx3270/rxapimain.cc
... ... @@ -49,6 +49,11 @@
49 49  
50 50 /*--[ Implement ]------------------------------------------------------------------------------------*/
51 51  
  52 +void rx3270_set_factory_method(PW3270_NAMESPACE::session * (* factory)(const char *))
  53 +{
  54 + PW3270_NAMESPACE::session::set_plugin(factory);
  55 +}
  56 +
52 57 // now build the actual entry list
53 58 RexxRoutineEntry rx3270_functions[] =
54 59 {
... ...