#include <stdio.h>#include <string.h>#include <stdlib.h>#include "../../sr_module.h"#include "../../dprint.h"#include "../../ut.h"#include "../../mod_fix.h"#include "../../statistics.h"#include "../../mem/mem.h"#include "stats_funcs.h"

Go to the source code of this file.
Data Structures | |
| struct | stat_or_pv |
Functions | |
| static int | fixup_stat (void **param, int param_no) |
| static int | mod_init (void) |
| static MODULE_VERSION int | reg_param_stat (modparam_t type, void *val) |
| static int | w_reset_stat (struct sip_msg *msg, char *stat, char *foo) |
| static int | w_update_stat (struct sip_msg *msg, char *stat, char *n) |
Variables | |
| static cmd_export_t | cmds [] |
| struct module_exports | exports |
| static param_export_t | mod_params [] |
| static int fixup_stat | ( | void ** | param, | |
| int | param_no | |||
| ) | [static] |
Definition at line 106 of file modules/statistics/statistics.c.
References E_CFG, E_OUT_OF_MEM, fixup_pvar(), get_stat, _str::len, LM_ERR, NULL, pkg_free, pkg_malloc, stat_or_pv::pv, _str::s, s, stat_or_pv::stat, and str2s().
| static int mod_init | ( | void | ) | [static] |
Definition at line 95 of file modules/statistics/statistics.c.
References E_UNSPEC, LM_ERR, and register_all_mod_stats().
| static int reg_param_stat | ( | modparam_t | type, | |
| void * | val | |||
| ) | [static] |
| static int w_reset_stat | ( | struct sip_msg * | msg, | |
| char * | stat, | |||
| char * | foo | |||
| ) | [static] |
Definition at line 194 of file modules/statistics/statistics.c.
References _pv_value::flags, get_stat, _str::len, LM_ERR, stat_or_pv::pv, pv_get_spec_value(), PV_VAL_STR, reset_stat, _pv_value::rs, _str::s, and stat_or_pv::stat.
| static int w_update_stat | ( | struct sip_msg * | msg, | |
| char * | stat, | |||
| char * | n | |||
| ) | [static] |
Definition at line 167 of file modules/statistics/statistics.c.
References _pv_value::flags, get_stat, _str::len, LM_ERR, stat_or_pv::pv, pv_get_spec_value(), PV_VAL_STR, _pv_value::rs, _str::s, stat_or_pv::stat, and update_stat.
cmd_export_t cmds[] [static] |
Definition at line 57 of file modules/statistics/statistics.c.
| struct module_exports exports |
Definition at line 71 of file modules/statistics/statistics.c.
param_export_t mod_params[] [static] |
Initial value:
{
{ "variable", STR_PARAM|USE_FUNC_PARAM, (void*)reg_param_stat },
{ 0,0,0 }
}
Definition at line 65 of file modules/statistics/statistics.c.
1.5.6