Commit ccc0ad39461fb358e03dc2a3c6abfa4941d103fd

Authored by Perry Werneck
1 parent 0d3245a8
Exists in master and in 1 other branch develop

Adding convenience method to create an action object.

Showing 1 changed file with 9 additions and 0 deletions   Show diff stats
client/src/include/lib3270/ipc.h
... ... @@ -793,6 +793,15 @@
793 793  
794 794 // Actions
795 795  
  796 + /// @brief Create new action object.
  797 + ///
  798 + /// Alocate a new action object associated with the session, delete it
  799 + /// when no longer necessary.
  800 + ///
  801 + inline TN3270::Action * getAction(const LIB3270_ACTION *descriptor) {
  802 + return session->getAction(descriptor);
  803 + }
  804 +
796 805 /// @brief Send PF.
797 806 inline Host & pfkey(unsigned short value) {
798 807 session->pfkey(value);
... ...