BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB-UTIL Reference

cli_console.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2010 Teluu Inc. (http://www.teluu.com)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18#ifndef __PJLIB_UTIL_CLI_CONSOLE_H__
19#define __PJLIB_UTIL_CLI_CONSOLE_H__
20
26#include <pjlib-util/cli_imp.h>
27
28
30
43typedef struct pj_cli_console_cfg
44{
51
58
65
67
68
75
76
93 const pj_cli_console_cfg *param,
94 pj_cli_sess **p_sess,
95 pj_cli_front_end **p_fe);
96
107 char *buf,
108 unsigned maxlen);
109
115
116#endif /* __PJLIB_UTIL_CLI_CONSOLE_H__ */
void pj_cli_console_cfg_default(pj_cli_console_cfg *param)
pj_status_t pj_cli_console_create(pj_cli_t *cli, const pj_cli_console_cfg *param, pj_cli_sess **p_sess, pj_cli_front_end **p_fe)
pj_status_t pj_cli_console_process(pj_cli_sess *sess, char *buf, unsigned maxlen)
Command Line Interface Implementor's API.
struct pj_cli_t pj_cli_t
Definition: cli.h:75
int pj_status_t
#define PJ_BEGIN_DECL
#define PJ_END_DECL
Definition: cli_console.h:44
int log_level
Definition: cli_console.h:50
pj_str_t prompt_str
Definition: cli_console.h:57
pj_str_t quit_command
Definition: cli_console.h:64
Definition: cli_imp.h:123
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.