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

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

 


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.