From 867e3d6e5dfa72710219c1f5e166011876899753 Mon Sep 17 00:00:00 2001 From: Luigi Rizzo Date: Fri, 17 Nov 2006 11:12:13 +0000 Subject: introduce a bit of regexp support in the internal CLI api. Now you can specify a cli command as "console autoanswer [on|off]" which means the on|off argument is optional, or "console {mute|unmute}" which means the mute|unmute argument is mandatory. The blocks in [] or {} do not necessarily need to be at the end of the string. Completions for the variant parts are generated automatically. This should significantly simplify the implementation of the various handlers. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47787 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/cli.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/asterisk/cli.h b/include/asterisk/cli.h index d1f9b152b..4f5d882de 100644 --- a/include/asterisk/cli.h +++ b/include/asterisk/cli.h @@ -174,7 +174,7 @@ struct ast_cli_entry { int inuse; /*!< For keeping track of usage */ struct module *module; /*!< module this belongs to */ char *_full_cmd; /*!< built at load time from cmda[] */ - + int cmdlen; /*!< len up to the first invalid char [<{% */ /*! \brief 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) -- cgit v1.2.3