Commit b5841af4d5b04a6f66cf1c46a8384578cd210fa4
1 parent
1b44d89d
Exists in
master
and in
3 other branches
Adjustments in the action API required by the IPC module.
Showing
3 changed files
with
9 additions
and
5 deletions
Show diff stats
src/core/actions/actions.c
... | ... | @@ -33,7 +33,7 @@ |
33 | 33 | |
34 | 34 | /*---[ Implement ]------------------------------------------------------------------------------------------------------------*/ |
35 | 35 | |
36 | -const LIB3270_ACTION * lib3270_get_action(const char *name) | |
36 | +const LIB3270_ACTION * lib3270_action_get_by_name(const char *name) | |
37 | 37 | { |
38 | 38 | const LIB3270_ACTION * actions = lib3270_get_actions(); |
39 | 39 | size_t f; |
... | ... | @@ -48,6 +48,10 @@ const LIB3270_ACTION * lib3270_get_action(const char *name) |
48 | 48 | return NULL; |
49 | 49 | } |
50 | 50 | |
51 | +const LIB3270_ACTION * lib3270_get_action(const char *name) { | |
52 | + return lib3270_action_get_by_name(name); | |
53 | +} | |
54 | + | |
51 | 55 | LIB3270_EXPORT int lib3270_action_is_activatable(const LIB3270_ACTION *action, H3270 *hSession) |
52 | 56 | { |
53 | 57 | return action->activatable(hSession) > 0; |
... | ... | @@ -70,7 +74,7 @@ LIB3270_EXPORT int lib3270_action_activate(const LIB3270_ACTION *action, H3270 * |
70 | 74 | |
71 | 75 | LIB3270_EXPORT int lib3270_action_activate_by_name(const char *name, H3270 *hSession) |
72 | 76 | { |
73 | - const LIB3270_ACTION *action = lib3270_get_action(name); | |
77 | + const LIB3270_ACTION *action = lib3270_action_get_by_name(name); | |
74 | 78 | |
75 | 79 | if(!action) |
76 | 80 | { | ... | ... |
src/include/lib3270.h
... | ... | @@ -1308,8 +1308,6 @@ |
1308 | 1308 | LIB3270_EXPORT const char * lib3270_get_model(const H3270 *session); |
1309 | 1309 | LIB3270_EXPORT int lib3270_get_model_number(const H3270 *hSession); |
1310 | 1310 | |
1311 | - LIB3270_EXPORT int lib3270_action(H3270 *hSession, const char *name); | |
1312 | - | |
1313 | 1311 | /** |
1314 | 1312 | * |
1315 | 1313 | * @brief Set the unlock delay in milliseconds. | ... | ... |
src/include/lib3270/actions.h
... | ... | @@ -504,7 +504,9 @@ |
504 | 504 | * @return Action descriptor or NULL if failed (sets errno). |
505 | 505 | * |
506 | 506 | */ |
507 | - LIB3270_EXPORT const LIB3270_ACTION * lib3270_get_action(const char *name); | |
507 | + LIB3270_EXPORT const LIB3270_ACTION * lib3270_action_get_by_name(const char *name); | |
508 | + | |
509 | + LIB3270_EXPORT const LIB3270_ACTION * LIB3270_DEPRECATED(lib3270_get_action(const char *name)); | |
508 | 510 | |
509 | 511 | /** |
510 | 512 | * | ... | ... |