Commit 80a4727453b0a881f743f5a8ad3a17275e882279

Authored by Perry Werneck
1 parent 89692bfc
Exists in master and in 1 other branch develop

Fixing API changes.

client/src/include/lib3270/ipc.h
... ... @@ -551,8 +551,8 @@
551 551 /// @brief Get the lib3270 revision string.
552 552 virtual std::string getRevision() const = 0;
553 553  
554   - /// @brief Get the LU name.
555   - virtual std::string getLUName() const = 0;
  554 + /// @brief Get the LU name associated with the session, if there is one.
  555 + virtual std::string getAssociatedLUName() const = 0;
556 556  
557 557 /// @brief Get the terminal lock state code.
558 558 virtual LIB3270_KEYBOARD_LOCK_STATE getKeyboardLockState() const = 0;
... ... @@ -796,8 +796,8 @@
796 796 }
797 797  
798 798 /// @brief Get LU Name.
799   - std::string getLUName() const {
800   - return session->getLUName();
  799 + std::string getAssociatedLUName() const {
  800 + return session->getAssociatedLUName();
801 801 }
802 802  
803 803 inline std::string getHostURL() const {
... ...
client/src/session/local/attribute.cc
... ... @@ -536,10 +536,10 @@
536 536  
537 537 }
538 538  
539   - std::string Local::Session::getLUName() const {
  539 + std::string Local::Session::getAssociatedLUName() const {
540 540  
541 541 std::lock_guard<std::mutex> lock(const_cast<Local::Session *>(this)->sync);
542   - return lib3270_get_luname(hSession);
  542 + return lib3270_get_associated_luname(hSession);
543 543  
544 544 }
545 545  
... ...
client/src/session/local/private.h
... ... @@ -140,7 +140,7 @@
140 140  
141 141 std::string getVersion() const override;
142 142 std::string getRevision() const override;
143   - std::string getLUName() const override;
  143 + std::string getAssociatedLUName() const override;
144 144 LIB3270_KEYBOARD_LOCK_STATE getKeyboardLockState() const override;
145 145  
146 146 std::string getHostURL() const override;
... ...
client/src/session/remote/private.h
... ... @@ -149,7 +149,7 @@
149 149  
150 150 std::string getVersion() const override;
151 151 std::string getRevision() const override;
152   - std::string getLUName() const override;
  152 + std::string getAssociatedLUName() const override;
153 153 LIB3270_KEYBOARD_LOCK_STATE getKeyboardLockState() const override;
154 154  
155 155 std::string getHostURL() const override;
... ...
client/src/session/remote/properties.cc
... ... @@ -197,10 +197,10 @@
197 197  
198 198 }
199 199  
200   - std::string IPC::Session::getLUName() const {
  200 + std::string IPC::Session::getAssociatedLUName() const {
201 201  
202 202 string rc;
203   - getAttribute("luname",rc);
  203 + getAttribute("associated_lu",rc);
204 204 return rc;
205 205  
206 206 }
... ...
client/src/testprogram/testprogram.cc
... ... @@ -67,7 +67,7 @@
67 67 cout
68 68 << "Connection state is " << toCharString(hSession->getConnectionState()) << std::endl
69 69 << "Program message is " << toCharString(hSession->getProgramMessage()) << std::endl
70   - << "Luname is " << hSession->getLUName() << std::endl
  70 + << "Luname is " << hSession->getAssociatedLUName() << std::endl
71 71 << std::endl;
72 72  
73 73 cout
... ... @@ -131,7 +131,7 @@
131 131 << "Wait for unlock returns " << host.getKeyboardLockState() << std::endl
132 132 << "Connection state is " << toCharString(host.getConnectionState()) << std::endl
133 133 << "Program message is " << toCharString(host.getProgramMessage()) << std::endl
134   - << "Luname is " << host.getLUName() << std::endl
  134 + << "Associated luname is " << host.getAssociatedLUName() << std::endl
135 135 << "Screen size is " << host.getScreenWidth() << "x" << host.getScreenHeight() << " (" << host.getScreenLength() << ")"
136 136 << std::endl;
137 137  
... ...