From 31658276283f08b309fd6e88c38407b68f1ef595 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Fri, 21 Dec 2018 18:34:12 -0200 Subject: [PATCH] + Implementing public method to get a list of all supported actions. --- src/lib3270/mkactions/mkactions.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+), 0 deletions(-) diff --git a/src/lib3270/mkactions/mkactions.c b/src/lib3270/mkactions/mkactions.c index 4ee48f5..5beeb97 100644 --- a/src/lib3270/mkactions/mkactions.c +++ b/src/lib3270/mkactions/mkactions.c @@ -169,6 +169,22 @@ int main(int argc, char *argv[]) { } fprintf(out, + "\n" + "\n typedef struct _lib3270_action_entry" + "\n {" + "\n const char *name;" + "\n const char *description;" + "\n int (*call)(H3270 *hSession);" + "\n } LIB3270_ACTION_ENTRY;" + "\n\n" + "/**\n" + " *\n" + " * @brief Get lib3270 action table.\n" + " *\n" + " * @return Array with all the supported actions.\n" + " */\n" + " LIB3270_EXPORT const LIB3270_ACTION_ENTRY * lib3270_get_action_table();\n" + "\n" "/**\n" " *\n" " * @brief Call lib3270 action by name.\n" -- libgit2 0.21.2