diff --git a/src/include/pw3270/hllapi.h b/src/include/pw3270/hllapi.h index 194b41d..eda1d12 100644 --- a/src/include/pw3270/hllapi.h +++ b/src/include/pw3270/hllapi.h @@ -107,6 +107,8 @@ extern "C" { HLLAPI_API_CALL hllapi_erase_eol(void); HLLAPI_API_CALL hllapi_erase_input(void); + HLLAPI_API_CALL hllapi_action(LPSTR buffer); + HLLAPI_API_CALL hllapi_print(void); HLLAPI_API_CALL hllapi(const LPWORD func, LPSTR str, LPWORD length, LPWORD rc); diff --git a/src/plugins/dbus3270/test.sh b/src/plugins/dbus3270/test.sh index 35054a5..b4b959e 100755 --- a/src/plugins/dbus3270/test.sh +++ b/src/plugins/dbus3270/test.sh @@ -41,6 +41,10 @@ run_command() dbus-send --session --print-reply --dest=$DEST.$SESSION $BPATH $DEST.setTextAt int32:$2 int32:$3 string:$4 ;; + action) + dbus-send --session --print-reply --dest=$DEST.$SESSION $BPATH $DEST.action string:$2 + ;; + enter) dbus-send --session --print-reply --dest=$DEST.$SESSION $BPATH $DEST.enter ;; diff --git a/src/plugins/hllapi/calls.cc b/src/plugins/hllapi/calls.cc index d877041..aeace45 100644 --- a/src/plugins/hllapi/calls.cc +++ b/src/plugins/hllapi/calls.cc @@ -314,6 +314,10 @@ return HLLAPI_STATUS_SUCCESS; } + HLLAPI_API_CALL hllapi_action(LPSTR buffer) { + session::get_default()->action((const char *) buffer); + return HLLAPI_STATUS_SUCCESS; + } HLLAPI_API_CALL hllapi_print(void) { diff --git a/src/plugins/hllapi/pluginmain.c b/src/plugins/hllapi/pluginmain.c index c878542..093ca19 100644 --- a/src/plugins/hllapi/pluginmain.c +++ b/src/plugins/hllapi/pluginmain.c @@ -388,7 +388,7 @@ case HLLAPI_PACKET_ACTION: send_result(source,lib3270_action(lib3270_get_default_session_handle(), - (const char *) ((struct hllapi_packet_text *) source->buffer)->text); + (const char *) ((struct hllapi_packet_text *) source->buffer)->text)); break; -- libgit2 0.21.2