Commit 58a9177fcd741c862bcd1fa03373d417d664ebba
1 parent
fd20c8cc
Exists in
master
Incluindo mais métodos da API.
Showing
3 changed files
with
34 additions
and
1 deletions
Show diff stats
src/native/actions.cc
@@ -43,3 +43,23 @@ int tn3270_pakey(h3270::session *ses, int key) { | @@ -43,3 +43,23 @@ int tn3270_pakey(h3270::session *ses, int key) { | ||
43 | return ses->pakey(key); | 43 | return ses->pakey(key); |
44 | } | 44 | } |
45 | 45 | ||
46 | +int tn3270_action(h3270::session *ses, const char *name) { | ||
47 | + return ses->action(name); | ||
48 | +} | ||
49 | + | ||
50 | +int tn3270_erase(h3270::session *ses) { | ||
51 | + return ses->erase(); | ||
52 | +} | ||
53 | + | ||
54 | +int tn3270_erase_eof(h3270::session *ses) { | ||
55 | + return ses->erase_eof(); | ||
56 | +} | ||
57 | + | ||
58 | +int tn3270_erase_eol(h3270::session *ses) { | ||
59 | + return ses->erase_eol(); | ||
60 | +} | ||
61 | + | ||
62 | +int tn3270_erase_input(h3270::session *ses) { | ||
63 | + return ses->erase_input(); | ||
64 | +} | ||
65 | + |
src/native/network.cc
@@ -44,4 +44,7 @@ int tn3270_is_connected(h3270::session *ses) { | @@ -44,4 +44,7 @@ int tn3270_is_connected(h3270::session *ses) { | ||
44 | return (int) ses->is_connected(); | 44 | return (int) ses->is_connected(); |
45 | } | 45 | } |
46 | 46 | ||
47 | +int tn3270_is_ready(h3270::session *ses) { | ||
48 | + return (int) ses->is_ready(); | ||
49 | +} | ||
47 | 50 |
src/native/private.h
@@ -78,6 +78,17 @@ | @@ -78,6 +78,17 @@ | ||
78 | DLL_PUBLIC int tn3270_connect(h3270::session *ses, const char *host, time_t wait); | 78 | DLL_PUBLIC int tn3270_connect(h3270::session *ses, const char *host, time_t wait); |
79 | DLL_PUBLIC int tn3270_disconnect(h3270::session *ses); | 79 | DLL_PUBLIC int tn3270_disconnect(h3270::session *ses); |
80 | DLL_PUBLIC int tn3270_is_connected(h3270::session *ses); | 80 | DLL_PUBLIC int tn3270_is_connected(h3270::session *ses); |
81 | + DLL_PUBLIC int tn3270_is_ready(h3270::session *ses); | ||
82 | + | ||
83 | + DLL_PUBLIC int tn3270_set_cursor_addr(h3270::session *ses, int addr); | ||
84 | + DLL_PUBLIC int tn3270_get_cursor_addr(h3270::session *ses); | ||
85 | + | ||
86 | + DLL_PUBLIC int tn3270_action(h3270::session *ses, const char *name); | ||
87 | + | ||
88 | + DLL_PUBLIC int tn3270_erase(h3270::session *ses); | ||
89 | + DLL_PUBLIC int tn3270_erase_eof(h3270::session *ses); | ||
90 | + DLL_PUBLIC int tn3270_erase_eol(h3270::session *ses); | ||
91 | + DLL_PUBLIC int tn3270_erase_input(h3270::session *ses); | ||
81 | 92 | ||
82 | DLL_PUBLIC int tn3270_wait_for_ready(h3270::session *ses, int seconds); | 93 | DLL_PUBLIC int tn3270_wait_for_ready(h3270::session *ses, int seconds); |
83 | DLL_PUBLIC int tn3270_wait(h3270::session *ses, int seconds); | 94 | DLL_PUBLIC int tn3270_wait(h3270::session *ses, int seconds); |
@@ -96,7 +107,6 @@ | @@ -96,7 +107,6 @@ | ||
96 | 107 | ||
97 | DLL_PUBLIC int tn3270_set_unlock_delay(h3270::session *ses, int ms); | 108 | DLL_PUBLIC int tn3270_set_unlock_delay(h3270::session *ses, int ms); |
98 | DLL_PUBLIC int tn3270_set_cursor_position(h3270::session *ses, int row, int col); | 109 | DLL_PUBLIC int tn3270_set_cursor_position(h3270::session *ses, int row, int col); |
99 | - DLL_PUBLIC int tn3270_set_cursor_addr(h3270::session *ses, int addr); | ||
100 | 110 | ||
101 | DLL_PUBLIC int tn3270_enter(h3270::session *ses); | 111 | DLL_PUBLIC int tn3270_enter(h3270::session *ses); |
102 | DLL_PUBLIC int tn3270_pfkey(h3270::session *ses, int key); | 112 | DLL_PUBLIC int tn3270_pfkey(h3270::session *ses, int key); |