summaryrefslogtreecommitdiff
path: root/include/asterisk/cli.h
diff options
context:
space:
mode:
authorPaul Belanger <paul.belanger@polybeacon.com>2010-05-05 00:44:37 +0000
committerPaul Belanger <paul.belanger@polybeacon.com>2010-05-05 00:44:37 +0000
commitb2f59bea24eaaf81c2d46543b5e0041a4c3274d3 (patch)
treeced8c33c48bfbc52db0e8897fa4ef21ccc072970 /include/asterisk/cli.h
parent3cea79e5fd55d23562dd4ee4c723a4e62e9d4fa7 (diff)
New 'manager show settings' CLI command.
See the CHANGES file for more details. (closes issue #16343) Reported by: pabelanger Patches: issue16343.patch.v5 uploaded by pabelanger (license 224) Tested by: pabelanger, tilghman, lmadsen Review: https://reviewboard.asterisk.org/r/630/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@261180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/cli.h')
-rw-r--r--include/asterisk/cli.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/cli.h b/include/asterisk/cli.h
index e3f30879e..af0c684c2 100644
--- a/include/asterisk/cli.h
+++ b/include/asterisk/cli.h
@@ -57,6 +57,13 @@ void ast_cli(int fd, const char *fmt, ...)
*/
#define ESS(x) ((x) == 1 ? "" : "s")
+/*! \brief return Yes or No 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_YESNO(x) (x) ? "Yes" : "No"
+
/*! \page CLI_command_API CLI command API
CLI commands are described by a struct ast_cli_entry that contains