diff options
Diffstat (limited to 'lib/command.h')
| -rw-r--r-- | lib/command.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h index 4531ec9a17..1aca8b4ae1 100644 --- a/lib/command.h +++ b/lib/command.h @@ -32,6 +32,7 @@ #include "command_graph.h" DECLARE_MTYPE(HOST) +DECLARE_MTYPE(COMPLETION) /* for test-commands.c */ DECLARE_MTYPE(STRVEC) @@ -391,4 +392,12 @@ extern int cmd_banner_motd_file (const char *); /* struct host global, ick */ extern struct host host; +struct cmd_variable_handler { + const char *tokenname, *varname; + void (*completions)(vector out, struct cmd_token *token); +}; + +extern void cmd_variable_complete (struct cmd_token *token, const char *arg, vector comps); +extern void cmd_variable_handler_register (const struct cmd_variable_handler *cvh); + #endif /* _ZEBRA_COMMAND_H */ |
