cmd: Add support for disabling specific abbrevs
[openafs.git] / src / cmd / cmd.p.h
index 75c2945..d7c58fe 100644 (file)
@@ -45,6 +45,7 @@ struct cmd_parmdesc {
 #define        CMD_EXPANDS         2   /* if list, try to eat tokens through eoline, instead of just 1 */
 #define CMD_HIDE            4  /* A hidden option */
 #define        CMD_PROCESSED       8
+#define CMD_NOABBRV       16   /* Abbreviation not supported */
 
 struct cmd_syndesc {
     struct cmd_syndesc *next;  /* next one in system list */
@@ -74,8 +75,8 @@ extern int cmd_CreateAlias(struct cmd_syndesc *as, char *aname);
 extern int cmd_Seek(struct cmd_syndesc *as, int apos);
 extern int cmd_AddParm(struct cmd_syndesc *as, char *aname, int atype,
                       afs_int32 aflags, char *ahelp);
-extern int cmd_AddParmAtOffset(struct cmd_syndesc *as, char *name, int atype,
-                             afs_int32 aflags, char *ahelp, int ref);
+extern int cmd_AddParmAtOffset(struct cmd_syndesc *as, int ref, char *name,
+                              int atype, afs_int32 aflags, char *ahelp);
 extern int cmd_AddParmAlias(struct cmd_syndesc *as, int pos, char *alias);
 extern int cmd_Dispatch(int argc, char **argv);
 extern int cmd_FreeArgv(char **argv);