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

cli_imp.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_IMP_H__
20 #define __PJLIB_UTIL_CLI_IMP_H__
21 
27 #include <pjlib-util/cli.h>
28 
29 
31 
42 #ifndef PJ_CLI_CONSOLE_LOG_LEVEL
43 # define PJ_CLI_CONSOLE_LOG_LEVEL PJ_LOG_MAX_LEVEL
44 #endif
45 
49 #ifndef PJ_CLI_TELNET_LOG_LEVEL
50 # define PJ_CLI_TELNET_LOG_LEVEL 4
51 #endif
52 
56 #ifndef PJ_CLI_TELNET_PORT
57 # define PJ_CLI_TELNET_PORT 0
58 #endif
59 
64 {
70 
71 
76 typedef struct pj_cli_front_end_op
77 {
89  void (*on_write_log)(pj_cli_front_end *fe, int level,
90  const char *data, pj_size_t len);
91 
101 
109 
111 
112 
124 {
129 
134 
139 
144 };
145 
146 
150 typedef struct pj_cli_sess_op
151 {
157  void (*destroy)(pj_cli_sess *sess);
158 
160 
161 
172 {
177 
182 
187 
193 
198 
199 };
200 
207 
208 #endif /* __PJLIB_UTIL_CLI_IMP_H__ */
Definition: cli_imp.h:67
pj_cli_t * cli
Definition: cli_imp.h:138
pj_cli_front_end_type type
Definition: cli_imp.h:133
Command Line Interface.
Definition: cli_imp.h:171
Definition: cli_imp.h:76
void(* destroy)(pj_cli_sess *sess)
Definition: cli_imp.h:157
pj_str_t info
Definition: cli_imp.h:192
int log_level
Definition: cli_imp.h:197
PJ_DECL_LIST_MEMBER(struct pj_cli_sess)
void(* on_write_log)(pj_cli_front_end *fe, int level, const char *data, pj_size_t len)
Definition: cli_imp.h:89
Definition: cli_imp.h:65
struct pj_cli_t pj_cli_t
Definition: cli.h:76
pj_cli_front_end_op * op
Definition: cli_imp.h:143
pj_cli_front_end_type
Definition: cli_imp.h:63
pj_cli_sess_op * op
Definition: cli_imp.h:186
#define PJ_END_DECL
Definition: cli_imp.h:123
Definition: cli_imp.h:66
#define PJ_BEGIN_DECL
Definition: cli_imp.h:150
Definition: cli_imp.h:68
void(* on_destroy)(pj_cli_front_end *fe)
Definition: cli_imp.h:108
PJ_DECL_LIST_MEMBER(struct pj_cli_front_end)
void(* on_quit)(pj_cli_front_end *fe, pj_cli_sess *req)
Definition: cli_imp.h:100
pj_cli_front_end * fe
Definition: cli_imp.h:181
size_t pj_size_t

 


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.