Commit a2a4a18c2e7821876d0dd5d7b6c4538f5f90daf5
1 parent
2c2e5e2a
Exists in
master
and in
3 other branches
Fixing toggle API.
Showing
3 changed files
with
11 additions
and
4 deletions
Show diff stats
lib3270.cbp
| ... | ... | @@ -190,7 +190,6 @@ |
| 190 | 190 | <Unit filename="src/include/ft_dftc.h" /> |
| 191 | 191 | <Unit filename="src/include/ftc.h" /> |
| 192 | 192 | <Unit filename="src/include/hostc.h" /> |
| 193 | - <Unit filename="src/include/keypadc.h" /> | |
| 194 | 193 | <Unit filename="src/include/kybdc.h" /> |
| 195 | 194 | <Unit filename="src/include/lib3270-internals.h" /> |
| 196 | 195 | <Unit filename="src/include/lib3270.h" /> | ... | ... |
src/include/lib3270.h
| ... | ... | @@ -1389,6 +1389,9 @@ |
| 1389 | 1389 | */ |
| 1390 | 1390 | LIB3270_EXPORT char * lib3270_build_data_filename(const char *name); |
| 1391 | 1391 | |
| 1392 | + LIB3270_EXPORT void lib3270_set_session_id(H3270 *hSession, char id); | |
| 1393 | + LIB3270_EXPORT char lib3270_get_session_id(H3270 *hSession); | |
| 1394 | + | |
| 1392 | 1395 | #ifdef __cplusplus |
| 1393 | 1396 | } |
| 1394 | 1397 | #endif | ... | ... |
src/include/lib3270/toggle.h
| ... | ... | @@ -33,6 +33,10 @@ |
| 33 | 33 | |
| 34 | 34 | #include <lib3270.h> |
| 35 | 35 | |
| 36 | +#ifdef __cplusplus | |
| 37 | + extern "C" { | |
| 38 | +#endif | |
| 39 | + | |
| 36 | 40 | /** |
| 37 | 41 | * @brief get toggle state. |
| 38 | 42 | * |
| ... | ... | @@ -109,10 +113,11 @@ |
| 109 | 113 | */ |
| 110 | 114 | LIB3270_EXPORT int lib3270_toggle(H3270 *h, LIB3270_TOGGLE ix); |
| 111 | 115 | |
| 112 | - LIB3270_EXPORT void lib3270_set_session_id(H3270 *hSession, char id); | |
| 113 | - LIB3270_EXPORT char lib3270_get_session_id(H3270 *hSession); | |
| 114 | - | |
| 115 | 116 | LIB3270_EXPORT const void * lib3270_register_toggle_listener(H3270 *hSession, LIB3270_TOGGLE tx, void (*func)(H3270 *, LIB3270_TOGGLE, char, void *),void *data); |
| 116 | 117 | LIB3270_EXPORT int lib3270_unregister_toggle_listener(H3270 *hSession, LIB3270_TOGGLE tx, const void *id); |
| 117 | 118 | |
| 119 | +#ifdef __cplusplus | |
| 120 | + } | |
| 121 | +#endif | |
| 122 | + | |
| 118 | 123 | #endif /* LIB3270_TOGGLE_H_INCLUDED */ | ... | ... |