diff options
author | Paul Belanger <paul.belanger@polybeacon.com> | 2010-05-12 01:00:55 +0000 |
---|---|---|
committer | Paul Belanger <paul.belanger@polybeacon.com> | 2010-05-12 01:00:55 +0000 |
commit | 4b1d9f85a763a0506d4c5c33286bbaccb008ff81 (patch) | |
tree | 61b183b9b55d27c9763ff0b982cae128374ae5de /include/asterisk/cli.h | |
parent | 9534f72cb0541090e8fe9d443aa394e4e6e09832 (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: https://origsvn.digium.com/svn/asterisk/trunk@262613 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/cli.h')
-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 |