diff options
author | pabelanger <pabelanger@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-12 01:00:55 +0000 |
---|---|---|
committer | pabelanger <pabelanger@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-05-12 01:00:55 +0000 |
commit | 827f51c9bc5b94a3b97137b3ad6bd59eeab63546 (patch) | |
tree | 61b183b9b55d27c9763ff0b982cae128374ae5de /include | |
parent | 1138c05db5cb3ea504d1411f0eb9564cb0f9345a (diff) |
Convert to AST_CLI_YESNO and AST_CLI_ONOFF
Clean up chan_sip.c to use new AST_CLI functions
(closes issue #17287)
Reported by: pabelanger
Patches:
issue17287.patch uploaded by pabelanger (license 224)
Tested by: russell
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@262613 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 af0c684c2..7258548b6 100644 --- a/include/asterisk/cli.h +++ b/include/asterisk/cli.h @@ -64,6 +64,13 @@ void ast_cli(int fd, const char *fmt, ...) */ #define AST_CLI_YESNO(x) (x) ? "Yes" : "No" +/*! \brief return On or Off depending on the argument. + * This is used in many places in CLI command, having a function to generate + * this helps maintaining a consistent output (and possibly emitting the + * output in other languages, at some point). + */ +#define AST_CLI_ONOFF(x) (x) ? "On" : "Off" + /*! \page CLI_command_API CLI command API CLI commands are described by a struct ast_cli_entry that contains |