diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-18 19:54:18 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-18 19:54:18 +0000 |
commit | 5aacb6a82d4cf625774fa1ea39ca193a3be73b35 (patch) | |
tree | cf63baa167f81c95d3dbf417f83681851decad80 /include | |
parent | 4de5810a0530bca0665eadcfb06ef06fd2e86758 (diff) |
merge qwell's CLI verbification work
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43212 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/cli.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/cli.h b/include/asterisk/cli.h index 02cdb290f..e2a6f818b 100644 --- a/include/asterisk/cli.h +++ b/include/asterisk/cli.h @@ -69,10 +69,17 @@ struct ast_cli_entry { until a NULL is returned. */ char *(*generator)(const char *line, const char *word, int pos, int n); + struct ast_cli_entry *deprecate_cmd; /*! For keeping track of usage */ int inuse; struct module *module; /*! module this belongs to */ char *_full_cmd; /* built at load time from cmda[] */ + /* This gets set in ast_cli_register() + It then gets set to something different when the deprecated command + is run for the first time (ie; after we warn the user that it's deprecated) + */ + int deprecated; + char *_deprecated_by; /* copied from the "parent" _full_cmd, on deprecated commands */ /*! For linking */ AST_LIST_ENTRY(ast_cli_entry) list; }; |