From 3b109b57e9deda12a50fb9f24ce89acef7bab79b Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 30 Jul 2020 20:36:25 -0300 Subject: [PATCH] Docummenting the set_charset method. --- src/core/calls.cc | 4 ++-- src/include/lib3270/hllapi.h | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/core/calls.cc b/src/core/calls.cc index 256d014..e358279 100644 --- a/src/core/calls.cc +++ b/src/core/calls.cc @@ -204,11 +204,11 @@ } - HLLAPI_API_CALL hllapi_set_charset(LPSTR text) { + HLLAPI_API_CALL hllapi_set_charset(LPSTR charset) { try { - getSession().setCharSet((const char *) text); + getSession().setCharSet((const char *) charset); return HLLAPI_STATUS_SUCCESS; } catch(std::exception &e) { diff --git a/src/include/lib3270/hllapi.h b/src/include/lib3270/hllapi.h index 872ef41..1563a87 100644 --- a/src/include/lib3270/hllapi.h +++ b/src/include/lib3270/hllapi.h @@ -342,7 +342,14 @@ HLLAPI_API_CALL hllapi_print(void); HLLAPI_API_CALL hllapi_get_datadir(LPSTR datadir); - HLLAPI_API_CALL hllapi_set_charset(LPSTR datadir); + + /** + * @brief Set local charset. + * + * @param charset The local charset. + * + */ + HLLAPI_API_CALL hllapi_set_charset(LPSTR charset); HLLAPI_API_CSTR hllapi_get_last_error(); -- libgit2 0.21.2