diff options
Diffstat (limited to 'include/command.h')
| -rw-r--r-- | include/command.h | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/include/command.h b/include/command.h index b8c42e1c9..a2936ad8b 100644 --- a/include/command.h +++ b/include/command.h @@ -46,6 +46,10 @@ struct cmd_tbl_s {  #ifdef	CFG_LONGHELP  	char		*help;		/* Help  message	(long)	*/  #endif +#ifdef CONFIG_AUTO_COMPLETE +	/* do auto completion on the arguments */ +	int		(*complete)(int argc, char *argv[], char last_char, int maxv, char *cmdv[]); +#endif  };  typedef struct cmd_tbl_s	cmd_tbl_t; @@ -57,6 +61,11 @@ extern cmd_tbl_t  __u_boot_cmd_end;  /* common/command.c */  cmd_tbl_t *find_cmd(const char *cmd); +#ifdef CONFIG_AUTO_COMPLETE +extern void install_auto_complete(void); +extern int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp); +#endif +  /*   * Monitor Command   * |