00001 00002 #ifndef _UFFS_CLI_H_ 00003 #define _UFFS_CLI_H_ 00004 00005 #ifndef BOOL 00006 #define BOOL int 00007 #endif 00008 00009 #ifndef TRUE 00010 #define TRUE 1 00011 #endif 00012 #ifndef FALSE 00013 #define FALSE 0 00014 #endif 00015 00016 typedef BOOL command_t(const char *tail); 00017 00018 struct cli_commandset { 00019 command_t *handler; 00020 const char *cmd; 00021 const char *args; 00022 const char *descr; 00023 }; 00024 00025 const char * cli_getparam(const char *tail, char **next); 00026 void cli_add_commandset(struct cli_commandset *cmds); 00027 void cliMain(); 00028 00029 #endif 00030 00031