diff options
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/cli.h | 7 | ||||
-rw-r--r-- | include/asterisk/manager.h | 3 |
2 files changed, 8 insertions, 2 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 diff --git a/include/asterisk/manager.h b/include/asterisk/manager.h index dd7c160f4..34595dee2 100644 --- a/include/asterisk/manager.h +++ b/include/asterisk/manager.h @@ -89,8 +89,7 @@ #define AST_MAX_MANHEADERS 128 /*! \brief Manager Helper Function */ -typedef int (*manager_hook_t)(int, const char *, char *); - +typedef int (*manager_hook_t)(int, const char *, char *); struct manager_custom_hook { /*! Identifier */ |