19#ifndef RES_PJSIP_CLI_H_
20#define RES_PJSIP_CLI_H_
24#define CLI_HEADER_FILLER ".........................................................................................."
25#define CLI_DETAIL_FILLER " "
26#define CLI_MAX_WIDTH 90
27#define CLI_LAST_TABSTOP 62
28#define CLI_MAX_TITLE_NAME 8
29#define CLI_INDENT_TO_SPACES(x) ((x * 2) + 1 + CLI_MAX_TITLE_NAME)
68 void *(* retrieve_by_id)(
const char *
id);
70 const char *(* get_id)(
const void *obj);
int() ao2_callback_fn(void *obj, void *arg, int flags)
Type of a generic callback function.
Standard Command Line Interface.
static int regex(struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len)
struct ao2_container * container
int ast_sip_unregister_cli_formatter(struct ast_sip_cli_formatter_entry *formatter)
Unregisters a CLI formatter.
int ast_sip_cli_print_sorcery_objectset(void *obj, void *arg, int flags)
Prints a sorcery object's ast_variable list.
struct ast_sip_cli_formatter_entry * ast_sip_lookup_cli_formatter(const char *name)
Looks up a CLI formatter by type.
char * ast_sip_cli_traverse_objects(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
int ast_sip_register_cli_formatter(struct ast_sip_cli_formatter_entry *formatter)
Registers a CLI formatter.
descriptor for a cli entry.
CLI Formatter Context passed to all formatters.
unsigned show_details_only_level_0
struct ast_str * output_buffer
CLI Formatter Registry Entry.
int(* iterate)(void *container, ao2_callback_fn callback, void *args)
ao2_callback_fn * print_header
ao2_callback_fn * print_body
Support for dynamic strings.