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);
struct ast_str * output_buffer
descriptor for a cli entry.
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.
int() ao2_callback_fn(void *obj, void *arg, int flags)
Type of a generic callback function.
struct ao2_container * container
int ast_sip_unregister_cli_formatter(struct ast_sip_cli_formatter_entry *formatter)
Unregisters a CLI formatter.
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
static int regex(struct ast_channel *chan, const char *cmd, char *parse, char *buf, size_t len)
Standard Command Line Interface.
ao2_callback_fn * print_header
struct ast_sip_cli_formatter_entry * ast_sip_lookup_cli_formatter(const char *name)
Looks up a CLI formatter by type.
ao2_callback_fn * print_body
int ast_sip_cli_print_sorcery_objectset(void *obj, void *arg, int flags)
Prints a sorcery object's ast_variable list.
unsigned show_details_only_level_0