diff --git a/src/core/actions/actions.c b/src/core/actions/actions.c index c83ead2..90feea5 100644 --- a/src/core/actions/actions.c +++ b/src/core/actions/actions.c @@ -33,7 +33,7 @@ /*---[ Implement ]------------------------------------------------------------------------------------------------------------*/ -const LIB3270_ACTION * lib3270_get_action(const char *name) +const LIB3270_ACTION * lib3270_action_get_by_name(const char *name) { const LIB3270_ACTION * actions = lib3270_get_actions(); size_t f; @@ -48,6 +48,10 @@ const LIB3270_ACTION * lib3270_get_action(const char *name) return NULL; } +const LIB3270_ACTION * lib3270_get_action(const char *name) { + return lib3270_action_get_by_name(name); +} + LIB3270_EXPORT int lib3270_action_is_activatable(const LIB3270_ACTION *action, H3270 *hSession) { return action->activatable(hSession) > 0; @@ -70,7 +74,7 @@ LIB3270_EXPORT int lib3270_action_activate(const LIB3270_ACTION *action, H3270 * LIB3270_EXPORT int lib3270_action_activate_by_name(const char *name, H3270 *hSession) { - const LIB3270_ACTION *action = lib3270_get_action(name); + const LIB3270_ACTION *action = lib3270_action_get_by_name(name); if(!action) { diff --git a/src/include/lib3270.h b/src/include/lib3270.h index bdf9c2a..01b2e26 100644 --- a/src/include/lib3270.h +++ b/src/include/lib3270.h @@ -1308,8 +1308,6 @@ LIB3270_EXPORT const char * lib3270_get_model(const H3270 *session); LIB3270_EXPORT int lib3270_get_model_number(const H3270 *hSession); - LIB3270_EXPORT int lib3270_action(H3270 *hSession, const char *name); - /** * * @brief Set the unlock delay in milliseconds. diff --git a/src/include/lib3270/actions.h b/src/include/lib3270/actions.h index 532d796..5d66575 100644 --- a/src/include/lib3270/actions.h +++ b/src/include/lib3270/actions.h @@ -504,7 +504,9 @@ * @return Action descriptor or NULL if failed (sets errno). * */ - LIB3270_EXPORT const LIB3270_ACTION * lib3270_get_action(const char *name); + LIB3270_EXPORT const LIB3270_ACTION * lib3270_action_get_by_name(const char *name); + + LIB3270_EXPORT const LIB3270_ACTION * LIB3270_DEPRECATED(lib3270_get_action(const char *name)); /** * -- libgit2 0.21.2