BLOG | DOCUMENTATION | GITHUB

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

cli_imp.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_IMP_H__
19#define __PJLIB_UTIL_CLI_IMP_H__
20
26#include <pjlib-util/cli.h>
27
28
30
41#ifndef PJ_CLI_CONSOLE_LOG_LEVEL
42# define PJ_CLI_CONSOLE_LOG_LEVEL PJ_LOG_MAX_LEVEL
43#endif
44
48#ifndef PJ_CLI_TELNET_LOG_LEVEL
49# define PJ_CLI_TELNET_LOG_LEVEL 4
50#endif
51
55#ifndef PJ_CLI_TELNET_PORT
56# define PJ_CLI_TELNET_PORT 0
57#endif
58
63{
69
70
75typedef struct pj_cli_front_end_op
76{
88 void (*on_write_log)(pj_cli_front_end *fe, int level,
89 const char *data, pj_size_t len);
90
100
108
110
111
123{
128
133
138
143};
144
145
149typedef struct pj_cli_sess_op
150{
156 void (*destroy)(pj_cli_sess *sess);
157
159
160
171{
176
181
186
192
197
198};
199
206
207#endif /* __PJLIB_UTIL_CLI_IMP_H__ */
Command Line Interface.
pj_cli_front_end_type
Definition: cli_imp.h:63
@ PJ_CLI_HTTP_FRONT_END
Definition: cli_imp.h:66
@ PJ_CLI_CONSOLE_FRONT_END
Definition: cli_imp.h:64
@ PJ_CLI_TELNET_FRONT_END
Definition: cli_imp.h:65
@ PJ_CLI_GUI_FRONT_END
Definition: cli_imp.h:67
struct pj_cli_t pj_cli_t
Definition: cli.h:75
size_t pj_size_t
#define PJ_BEGIN_DECL
#define PJ_END_DECL
Definition: cli_imp.h:76
void(* on_write_log)(pj_cli_front_end *fe, int level, const char *data, pj_size_t len)
Definition: cli_imp.h:88
void(* on_quit)(pj_cli_front_end *fe, pj_cli_sess *req)
Definition: cli_imp.h:99
void(* on_destroy)(pj_cli_front_end *fe)
Definition: cli_imp.h:107
Definition: cli_imp.h:123
pj_cli_front_end_type type
Definition: cli_imp.h:132
pj_cli_front_end_op * op
Definition: cli_imp.h:142
pj_cli_t * cli
Definition: cli_imp.h:137
PJ_DECL_LIST_MEMBER(struct pj_cli_front_end)
Definition: cli_imp.h:150
void(* destroy)(pj_cli_sess *sess)
Definition: cli_imp.h:156
Definition: cli_imp.h:171
pj_cli_sess_op * op
Definition: cli_imp.h:185
int log_level
Definition: cli_imp.h:196
pj_cli_front_end * fe
Definition: cli_imp.h:180
pj_str_t info
Definition: cli_imp.h:191
PJ_DECL_LIST_MEMBER(struct pj_cli_sess)

 


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.