Commit 1dfbf5e348ac5be3db811c0ec3abfaa7b38b9a33
1 parent
5559de21
Exists in
master
and in
5 other branches
Mudando biblioteca cliente hllapi para usar a classe base para simplificar o desenvolvimento
Showing
4 changed files
with
18 additions
and
4 deletions
Show diff stats
pw3270.cbp
| ... | ... | @@ -271,9 +271,7 @@ |
| 271 | 271 | <Unit filename="src/plugins/dbus3270/service.h" /> |
| 272 | 272 | <Unit filename="src/plugins/dbus3270/test.sh" /> |
| 273 | 273 | <Unit filename="src/plugins/hllapi/Makefile.in" /> |
| 274 | - <Unit filename="src/plugins/hllapi/calls.c"> | |
| 275 | - <Option compilerVar="CC" /> | |
| 276 | - </Unit> | |
| 274 | + <Unit filename="src/plugins/hllapi/calls.cc" /> | |
| 277 | 275 | <Unit filename="src/plugins/hllapi/client.h" /> |
| 278 | 276 | <Unit filename="src/plugins/hllapi/hllapi.c"> |
| 279 | 277 | <Option compilerVar="CC" /> | ... | ... |
src/include/pw3270/class.h
| ... | ... | @@ -162,6 +162,10 @@ |
| 162 | 162 | virtual int pakey(int key) = 0; |
| 163 | 163 | virtual int quit(void) = 0; |
| 164 | 164 | |
| 165 | + // Actions | |
| 166 | + virtual int erase_eof(void) = 0; | |
| 167 | + virtual int print(void) = 0; | |
| 168 | + | |
| 165 | 169 | // Field management |
| 166 | 170 | virtual int get_field_start(int baddr = -1) = 0; |
| 167 | 171 | virtual int get_field_len(int baddr = -1) = 0; | ... | ... |
src/plugins/rx3270/Makefile.in
| ... | ... | @@ -29,7 +29,6 @@ |
| 29 | 29 | MODULE_NAME=rx3270 |
| 30 | 30 | DEPENDS=*.h ../../include/*.h ../../include/lib3270/*.h Makefile |
| 31 | 31 | PLUGIN_SRC=pluginmain.cc |
| 32 | -# EXTAPI_SRC=rxapimain.cc text.cc typed_routines.cc local.cc remote.cc rexx_methods.cc rx3270.cc exception.cc | |
| 33 | 32 | EXTAPI_SRC=rxapimain.cc typed_routines.cc rexx_methods.cc |
| 34 | 33 | |
| 35 | 34 | #---[ Tools ]------------------------------------------------------------------ | ... | ... |
src/plugins/rx3270/pluginmain.cc
| ... | ... | @@ -114,6 +114,9 @@ |
| 114 | 114 | int pfkey(int key); |
| 115 | 115 | int pakey(int key); |
| 116 | 116 | |
| 117 | + int erase_eof(void); | |
| 118 | + int print(void); | |
| 119 | + | |
| 117 | 120 | int get_field_start(int baddr = -1); |
| 118 | 121 | int get_field_len(int baddr = -1); |
| 119 | 122 | int get_next_unprotected(int baddr = -1); |
| ... | ... | @@ -743,3 +746,13 @@ string * plugin::get_display_charset(void) |
| 743 | 746 | { |
| 744 | 747 | return new string(lib3270_get_display_charset(hSession)); |
| 745 | 748 | } |
| 749 | + | |
| 750 | +int plugin::erase_eof(void) | |
| 751 | +{ | |
| 752 | + return lib3270_eraseeof(hSession); | |
| 753 | +} | |
| 754 | + | |
| 755 | +int plugin::print(void) | |
| 756 | +{ | |
| 757 | + return lib3270_print(hSession); | |
| 758 | +} | ... | ... |