mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
@@ -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 */
|
||||
|
Reference in New Issue
Block a user