diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-11-17 11:12:13 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-11-17 11:12:13 +0000 |
commit | 867e3d6e5dfa72710219c1f5e166011876899753 (patch) | |
tree | beb3ddc8b7a08d19d8863143604889c360bf4b2a /include/asterisk/cli.h | |
parent | 57d4919427ee61c32d598f4ec14b799917c716d0 (diff) |
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
Diffstat (limited to 'include/asterisk/cli.h')
-rw-r--r-- | include/asterisk/cli.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) |