diff options
author | Leo C | 2018-07-28 00:49:48 +0200 |
---|---|---|
committer | Leo C | 2018-07-28 01:22:36 +0200 |
commit | 04f849375f8277203eddbeac2bfbfbfc433bbacf (patch) | |
tree | 6ae45ee764ae870d2fbdd4add7b5e3b073a7a4e7 /include/command.h | |
parent | b0a9d14ceee5b6d4e6e27bb6982497c70cd12aeb (diff) | |
download | z180-stamp-04f849375f8277203eddbeac2bfbfbfc433bbacf.zip |
Enable execution of individual sub commands on top level
Diffstat (limited to 'include/command.h')
-rw-r--r-- | include/command.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/command.h b/include/command.h index d7eccc9..614d527 100644 --- a/include/command.h +++ b/include/command.h @@ -1,5 +1,5 @@ /* - * (C) Copyright 2014-2016 Leo C. <erbl259-lmu@yahoo.de> + * (C) Copyright 2014-2016, 2018 Leo C. <erbl259-lmu@yahoo.de> * * (C) Copyright 2000-2009 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. @@ -50,13 +50,12 @@ struct cmd_tbl_s { uint8_t maxargs; /* maximum number of arguments */ uint8_t flags; /* autorepeat allowed? */ /* Implementation function */ - command_ret_t (*cmd)(const FLASH struct cmd_tbl_s *, uint_fast8_t, int, char * const []); + command_ret_t (*cmd)(cmd_tbl_t *, uint_fast8_t, int, char * const []); const FLASH char *usage; /* Usage message (short) */ #ifdef CONFIG_SYS_LONGHELP const FLASH char *help; /* Help message (long) */ #endif cmd_tbl_t *subcmd; -// const FLASH struct cmd_tbl_s *subcommands; #ifdef CONFIG_AUTO_COMPLETE /* do auto completion on the arguments */ int (*complete)(int argc, char * const argv[], char last_char, int maxv, char *cmdv[]); |