]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/command.h
* Patches by Pantelis Antoniou, 30 Mar 2004:
[people/ms/u-boot.git] / include / command.h
index b8c42e1c93056e2f72a703bf2e8e7ac7e237906b..a2936ad8b3e583e30fc57012c1395bcc8c8dfacb 100644 (file)
@@ -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
  *