Commit 0437c17825248a389c6ae60f4ccc0d6c9a2ea96a
1 parent
469987e5
Exists in
master
and in
1 other branch
Fixing bug in action object.
Showing
3 changed files
with
7 additions
and
1 deletions
Show diff stats
client/src/core/actions.cc
| ... | ... | @@ -36,6 +36,7 @@ |
| 36 | 36 | * |
| 37 | 37 | */ |
| 38 | 38 | |
| 39 | + #include <ipc-client-internals.h> | |
| 39 | 40 | #include <lib3270/ipc.h> |
| 40 | 41 | #include <lib3270/toggle.h> |
| 41 | 42 | #include <lib3270/properties.h> |
| ... | ... | @@ -44,6 +45,7 @@ |
| 44 | 45 | /*---[ Implement ]----------------------------------------------------------------------------------*/ |
| 45 | 46 | |
| 46 | 47 | TN3270::Action::Action(const LIB3270_ACTION *descriptor) { |
| 48 | + debug(__FUNCTION__,"(",(void *) descriptor,",",descriptor->name,",",descriptor->summary,")"); | |
| 47 | 49 | this->descriptor = descriptor; |
| 48 | 50 | } |
| 49 | 51 | |
| ... | ... | @@ -51,10 +53,12 @@ |
| 51 | 53 | } |
| 52 | 54 | |
| 53 | 55 | const char * TN3270::Action::getDescription() const noexcept { |
| 56 | + debug(__FUNCTION__,"(",(void *) descriptor,")"); | |
| 54 | 57 | return lib3270_property_get_description((const LIB3270_PROPERTY *) this->descriptor); |
| 55 | 58 | } |
| 56 | 59 | |
| 57 | 60 | const char * TN3270::Action::getSummary() const noexcept { |
| 61 | + debug(__FUNCTION__,"(",(void *) descriptor,")"); | |
| 58 | 62 | return lib3270_property_get_summary((const LIB3270_PROPERTY *) this->descriptor); |
| 59 | 63 | } |
| 60 | 64 | ... | ... |
client/src/session/local/actions.cc
| ... | ... | @@ -45,16 +45,19 @@ |
| 45 | 45 | namespace TN3270 { |
| 46 | 46 | |
| 47 | 47 | Local::Action::Action(Session *session, const LIB3270_ACTION *descriptor) : TN3270::Action(descriptor) { |
| 48 | + debug(__FUNCTION__,"(",(void *) descriptor,")"); | |
| 48 | 49 | this->session = session; |
| 49 | 50 | } |
| 50 | 51 | |
| 51 | 52 | bool Local::Action::activatable() const noexcept { |
| 52 | 53 | std::lock_guard<std::mutex> lock(this->session->sync); |
| 54 | + debug(__FUNCTION__,"(",(void *) descriptor,")"); | |
| 53 | 55 | return lib3270_action_is_activatable(this->descriptor,this->session->hSession); |
| 54 | 56 | } |
| 55 | 57 | |
| 56 | 58 | void Local::Action::activate() { |
| 57 | 59 | std::lock_guard<std::mutex> lock(this->session->sync); |
| 60 | + debug(__FUNCTION__,"(",(void *) descriptor,")"); | |
| 58 | 61 | chkResponse(lib3270_action_activate(this->descriptor,this->session->hSession)); |
| 59 | 62 | } |
| 60 | 63 | ... | ... |
client/src/session/local/private.h