Commit 3b109b57e9deda12a50fb9f24ce89acef7bab79b
1 parent
c08db4b9
Exists in
master
and in
1 other branch
Docummenting the set_charset method.
Showing
2 changed files
with
10 additions
and
3 deletions
Show diff stats
src/core/calls.cc
| ... | ... | @@ -204,11 +204,11 @@ |
| 204 | 204 | |
| 205 | 205 | } |
| 206 | 206 | |
| 207 | - HLLAPI_API_CALL hllapi_set_charset(LPSTR text) { | |
| 207 | + HLLAPI_API_CALL hllapi_set_charset(LPSTR charset) { | |
| 208 | 208 | |
| 209 | 209 | try { |
| 210 | 210 | |
| 211 | - getSession().setCharSet((const char *) text); | |
| 211 | + getSession().setCharSet((const char *) charset); | |
| 212 | 212 | return HLLAPI_STATUS_SUCCESS; |
| 213 | 213 | |
| 214 | 214 | } catch(std::exception &e) { | ... | ... |
src/include/lib3270/hllapi.h
| ... | ... | @@ -342,7 +342,14 @@ |
| 342 | 342 | HLLAPI_API_CALL hllapi_print(void); |
| 343 | 343 | |
| 344 | 344 | HLLAPI_API_CALL hllapi_get_datadir(LPSTR datadir); |
| 345 | - HLLAPI_API_CALL hllapi_set_charset(LPSTR datadir); | |
| 345 | + | |
| 346 | + /** | |
| 347 | + * @brief Set local charset. | |
| 348 | + * | |
| 349 | + * @param charset The local charset. | |
| 350 | + * | |
| 351 | + */ | |
| 352 | + HLLAPI_API_CALL hllapi_set_charset(LPSTR charset); | |
| 346 | 353 | |
| 347 | 354 | HLLAPI_API_CSTR hllapi_get_last_error(); |
| 348 | 355 | ... | ... |