#include <stdarg.h>
Include dependency graph for cli.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | ast_cli_entry |
A command line entry */. More... | |
Defines | |
#define | RESULT_SUCCESS 0 |
#define | RESULT_SHOWUSAGE 1 |
#define | RESULT_FAILURE 2 |
#define | AST_MAX_CMD_LEN 16 |
#define | AST_MAX_ARGS 64 |
#define | AST_CLI_COMPLETE_EOF "_EOF_" |
Functions | |
void | ast_cli (int fd, char *fmt,...) __attribute__((format(printf |
int | ast_cli_command (int fd, char *s) |
Interprets a command. | |
int | ast_cli_register (struct ast_cli_entry *e) |
Registers a command. | |
int | ast_cli_unregister (struct ast_cli_entry *e) |
Unregisters a command. | |
char * | ast_cli_generator (char *, char *, int) |
Readline madness. | |
int | ast_cli_generatornummatches (char *, char *) |
char ** | ast_cli_completion_matches (char *, char *) |
|
|
|
Definition at line 32 of file cli.h. Referenced by ast_cli_command(). |
|
|
|
|
|
Definition at line 27 of file cli.h. Referenced by ast_cli_command(). |
|
|
|
Referenced by ast_cli_command(), astman_send_error(), astman_send_response(), main(), and manager_event(). |
|
Interprets a command. Interpret a command s, sending output to fd Returns 0 on succes, -1 on failure Definition at line 1019 of file cli.c. References ast_cli(), ast_log(), AST_MAX_ARGS, ast_mutex_lock, ast_mutex_unlock, free, LOG_WARNING, RESULT_SHOWUSAGE, and s.
|
|
Definition at line 903 of file cli.c. References ast_cli_generator(), malloc, and realloc.
|
|
Readline madness.
Definition at line 1014 of file cli.c. Referenced by ast_cli_completion_matches(), and ast_cli_generatornummatches().
|
|
Definition at line 886 of file cli.c. References ast_cli_generator().
|
|
Registers a command.
Definition at line 709 of file cli.c. References ast_log(), ast_mutex_lock, ast_mutex_unlock, ast_cli_entry::cmda, helpers, LOG_WARNING, and ast_cli_entry::next. Referenced by ast_image_init(), ast_register_translator(), astdb_init(), init_framer(), init_logger(), init_manager(), load_pbx(), and main().
|
|
Unregisters a command.
Definition at line 683 of file cli.c. References ast_log(), ast_mutex_lock, ast_mutex_unlock, helpers, ast_cli_entry::inuse, LOG_WARNING, and ast_cli_entry::next.
|