command.h (405B)
1 #ifndef __SUPERCOP_CLI_COMMAND_H__ 2 #define __SUPERCOP_CLI_COMMAND_H__ 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 struct cmd_struct { 9 void *next; 10 const char **name; 11 const char *display; 12 const char *description; 13 const char *help_text; 14 int (*fn)(int, const char **); 15 }; 16 17 extern struct cmd_struct *commands; 18 19 #ifdef __cplusplus 20 } // extern "C" 21 #endif 22 23 #endif // __SUPERCOP_CLI_COMMAND_H__