#include <stdio.h>#include <string.h>#include <stdlib.h>#include <sys/types.h>#include <sys/ipc.h>#include <unistd.h>#include <fcntl.h>#include <time.h>#include <ctype.h>#include "../../sr_module.h"#include "../../dprint.h"#include "../../error.h"#include "../../mem/mem.h"#include "xl_lib.h"#include "../../pvar.h"

Go to the source code of this file.
Data Structures | |
| struct | _xl_level |
Defines | |
| #define | append_sstring(p, end, s) |
| #define | COL_BUF 10 |
Typedefs | |
| typedef struct _xl_level * | xl_level_p |
| typedef struct _xl_level | xl_level_t |
Functions | |
| void | destroy (void) |
| static int | mod_init (void) |
| static int | pv_get_color (struct sip_msg *msg, pv_param_t *param, pv_value_t *res) |
| int | pv_parse_color_name (pv_spec_p sp, str *in) |
| static int | xdbg (struct sip_msg *, char *, char *) |
| static int | xdbg_fixup (void **param, int param_no) |
| static int | xlog_1 (struct sip_msg *, char *, char *) |
| static int | xlog_2 (struct sip_msg *, char *, char *) |
| static int | xlog_fixup (void **param, int param_no) |
Variables | |
| int | buf_size = 4096 |
| static cmd_export_t | cmds [] |
| struct module_exports | exports |
| int | force_color = 0 |
| MODULE_VERSION char * | log_buf = NULL |
| static pv_export_t | mod_items [] |
| static param_export_t | params [] |
| #define append_sstring | ( | p, | |||
| end, | |||||
| s | ) |
| #define COL_BUF 10 |
| typedef struct _xl_level * xl_level_p |
| typedef struct _xl_level xl_level_t |
| void destroy | ( | void | ) |
destroy function
| static int mod_init | ( | void | ) | [static] |
| static int pv_get_color | ( | struct sip_msg * | msg, | |
| pv_param_t * | param, | |||
| pv_value_t * | res | |||
| ) | [static] |
Definition at line 386 of file xlog.c.
References append_sstring, COL_BUF, force_color, _pv_name::isname, _str::len, LM_ERR, log_stderr, pv_get_null(), pv_get_strval(), _pv_param::pvn, _str::s, s, and _pv_name::u.
Referenced by pv_parse_color_name().
Definition at line 318 of file xlog.c.
References AVP_NAME_STR, _pv_spec::getf, _pv_name::isname, _str::len, LM_ERR, NULL, pv_get_color(), PV_NAME_INTSTR, _pv_param::pvn, _pv_spec::pvp, PVT_COLOR, _str::s, _pv_spec::type, _pv_name::type, and _pv_name::u.
| static int xdbg | ( | struct sip_msg * | msg, | |
| char * | frm, | |||
| char * | str2 | |||
| ) | [static] |
Definition at line 193 of file xlog.c.
References buf_size, is_printable, L_DBG, LM_GEN1, log_buf, and xl_print_log().
| static int xdbg_fixup | ( | void ** | param, | |
| int | param_no | |||
| ) | [static] |
Definition at line 277 of file xlog.c.
References E_UNSPEC, force_color, _str::len, LM_ERR, log_stderr, pv_parse_format(), _str::s, and s.
Referenced by xlog_fixup().
| static int xlog_1 | ( | struct sip_msg * | msg, | |
| char * | frm, | |||
| char * | str2 | |||
| ) | [static] |
Definition at line 136 of file xlog.c.
References buf_size, is_printable, L_ERR, LM_GEN1, log_buf, and xl_print_log().
| static int xlog_2 | ( | struct sip_msg * | msg, | |
| char * | lev, | |||
| char * | frm | |||
| ) | [static] |
Definition at line 156 of file xlog.c.
References buf_size, _pv_value::flags, is_printable, _xl_level::level, LM_ERR, LM_GEN1, log_buf, pv_get_spec_value(), PV_VAL_INT, PV_VAL_NULL, _pv_value::ri, _xl_level::sp, _xl_level::type, _xl_level::v, and xl_print_log().
| static int xlog_fixup | ( | void ** | param, | |
| int | param_no | |||
| ) | [static] |
Definition at line 220 of file xlog.c.
References E_UNSPEC, L_ALERT, L_CRIT, L_DBG, L_ERR, L_INFO, L_NOTICE, L_WARN, _str::len, _xl_level::level, LM_ERR, NULL, pkg_free, pkg_malloc, PV_MARKER, pv_parse_spec(), _str::s, s, _xl_level::sp, _xl_level::type, _xl_level::v, and xdbg_fixup().
| int buf_size = 4096 |
cmd_export_t cmds[] [static] |
| struct module_exports exports |
| int force_color = 0 |
| MODULE_VERSION char* log_buf = NULL |
Copyright (C) 2001-2003 FhG Fokus
This file is part of Kamailio, a free SIP server.
Kamailio is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version
Kamailio is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
pv_export_t mod_items[] [static] |
Initial value:
{
{ {"C", sizeof("C")-1}, PVT_OTHER, pv_get_color, 0,
pv_parse_color_name, 0, 0, 0 },
{ {0, 0}, 0, 0, 0, 0, 0, 0, 0 }
}
param_export_t params[] [static] |
1.5.6