From ecc67a6498b8a4c132d54987b9a281a4b834d57f Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Mon, 21 Sep 2020 12:20:17 -0300 Subject: [PATCH] Adding "setProperty" methods for legacy compatility. --- client/src/include/lib3270/ipc.h | 17 +++++++++++++++++ client/src/testprogram/testprogram.cc | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/client/src/include/lib3270/ipc.h b/client/src/include/lib3270/ipc.h index 5eca6de..b5528eb 100644 --- a/client/src/include/lib3270/ipc.h +++ b/client/src/include/lib3270/ipc.h @@ -821,6 +821,23 @@ return getAttribute(name); } + // Set properties. + inline void setProperty(const char *name, const int value) { + session->setProperty(name,value); + } + + inline void setProperty(const char *name, const unsigned int value) { + session->setProperty(name,value); + } + + inline void setProperty(const char *name, const bool value) { + session->setProperty(name,value); + } + + inline void setProperty(const char *name, const char *value) { + session->setProperty(name,value); + } + /// @brief Get lib3270 version. inline std::string getVersion() const { return session->getVersion(); diff --git a/client/src/testprogram/testprogram.cc b/client/src/testprogram/testprogram.cc index 91ce940..f97eadc 100644 --- a/client/src/testprogram/testprogram.cc +++ b/client/src/testprogram/testprogram.cc @@ -104,7 +104,7 @@ TN3270::Host host{session}; host.setTimeout(5); - // host.setProperty("crl_download",false); + host.setProperty("crl_download",false); //name="url"; -- libgit2 0.21.2