Commit 31658276283f08b309fd6e88c38407b68f1ef595

Authored by Perry Werneck
1 parent 04c0ee5c

+ Implementing public method to get a list of all supported actions.

Showing 1 changed file with 16 additions and 0 deletions   Show diff stats
src/lib3270/mkactions/mkactions.c
... ... @@ -169,6 +169,22 @@ int main(int argc, char *argv[]) {
169 169 }
170 170  
171 171 fprintf(out,
  172 + "\n"
  173 + "\n typedef struct _lib3270_action_entry"
  174 + "\n {"
  175 + "\n const char *name;"
  176 + "\n const char *description;"
  177 + "\n int (*call)(H3270 *hSession);"
  178 + "\n } LIB3270_ACTION_ENTRY;"
  179 + "\n\n"
  180 + "/**\n"
  181 + " *\n"
  182 + " * @brief Get lib3270 action table.\n"
  183 + " *\n"
  184 + " * @return Array with all the supported actions.\n"
  185 + " */\n"
  186 + " LIB3270_EXPORT const LIB3270_ACTION_ENTRY * lib3270_get_action_table();\n"
  187 + "\n"
172 188 "/**\n"
173 189 " *\n"
174 190 " * @brief Call lib3270 action by name.\n"
... ...