Home --> Documentations --> PJLIB-UTIL Reference
Go to the documentation of this file.
18#ifndef __PJLIB_UTIL_CLI_H__
19#define __PJLIB_UTIL_CLI_H__
void pj_cli_destroy(pj_cli_t *cli)
struct pj_cli_cmd_spec pj_cli_cmd_spec Definition: cli.h:118
pj_status_t pj_cli_create(pj_cli_cfg *cfg, pj_cli_t **p_cli)
pj_bool_t pj_cli_is_restarting(pj_cli_t *cli)
struct pj_cli_arg_spec pj_cli_arg_spec Definition: cli.h:133
void pj_cli_cfg_default(pj_cli_cfg *param)
void pj_cli_exec_info_default(pj_cli_exec_info *param)
pj_bool_t pj_cli_is_quitting(pj_cli_t *cli)
pj_cli_cmd_id pj_cli_get_cmd_id(const pj_cli_cmd_spec *cmd)
int pj_cli_cmd_id Definition: cli.h:80
pj_status_t pj_cli_sess_exec(pj_cli_sess *sess, char *cmdline, pj_pool_t *pool, pj_cli_exec_info *info)
int pj_cli_arg_id Definition: cli.h:113
void pj_cli_quit(pj_cli_t *cli, pj_cli_sess *req, pj_bool_t restart)
pj_cli_cfg * pj_cli_get_param(pj_cli_t *cli)
void pj_cli_sess_end_session(pj_cli_sess *sess)
void pj_cli_register_front_end(pj_cli_t *cli, pj_cli_front_end *fe)
void pj_cli_write_log(pj_cli_t *cli, int level, const char *buffer, int len)
pj_status_t pj_cli_sess_parse(pj_cli_sess *sess, char *cmdline, pj_cli_cmd_val *val, pj_pool_t *pool, pj_cli_exec_info *info)
pj_status_t pj_cli_add_cmd_from_xml(pj_cli_t *cli, pj_cli_cmd_spec *group, const pj_str_t *xml, pj_cli_cmd_handler handler, pj_cli_cmd_spec **p_cmd, pj_cli_get_dyn_choice get_choice)
void(* pj_cli_get_dyn_choice)(pj_cli_dyn_choice_param *param) Definition: cli.h:285
pj_status_t(* pj_cli_cmd_handler)(pj_cli_cmd_val *cval) Definition: cli.h:295
struct pj_cli_t pj_cli_t Definition: cli.h:75
void pj_cli_sess_write_msg(pj_cli_sess *sess, const char *buffer, pj_size_t len)
#define PJ_CLI_MAX_HINTS Definition: config.h:309
#define PJ_CLI_MAX_CHOICE_VAL Definition: config.h:357
#define PJ_CLI_MAX_ARGS Definition: config.h:301
pj_str_t value Definition: cli.h:230
pj_str_t desc Definition: cli.h:236
pj_str_t name Definition: cli.h:93
pj_str_t title Definition: cli.h:100
pj_pool_factory * pf Definition: cli.h:106
pj_cli_sess * sess Definition: cli.h:141
const pj_cli_cmd_spec * cmd Definition: cli.h:144
int argc Definition: cli.h:147
pj_str_t argv[PJ_CLI_MAX_ARGS] Definition: cli.h:150
pj_cli_arg_id arg_id Definition: cli.h:258
unsigned cnt Definition: cli.h:273
pj_cli_sess * sess Definition: cli.h:248
pj_cli_arg_choice_val choice[PJ_CLI_MAX_CHOICE_VAL] Definition: cli.h:278
unsigned max_cnt Definition: cli.h:263
pj_pool_t * pool Definition: cli.h:268
pj_cli_cmd_spec * cmd Definition: cli.h:253
unsigned hint_cnt Definition: cli.h:208
int err_pos Definition: cli.h:190
pj_cli_cmd_id cmd_id Definition: cli.h:197
pj_cli_hint_info hint[PJ_CLI_MAX_HINTS] Definition: cli.h:217
pj_status_t cmd_ret Definition: cli.h:203
Definition: cli_imp.h:123
pj_str_t name Definition: cli.h:164
pj_str_t desc Definition: cli.h:174
pj_str_t type Definition: cli.h:169
Definition: cli_imp.h:171
PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.
|