MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / evi_param_create

Function evi_param_create

evi/evi_params.c:34–61  ·  view source on GitHub ↗

creates an element and links it to the parameters list * but without populating the parameter value */

Source from the content-addressed store, hash-verified

32/* creates an element and links it to the parameters list
33 * but without populating the parameter value */
34evi_param_p evi_param_create(evi_params_p list, const str *name)
35{
36 evi_param_p new_p;
37
38 if (!list) {
39 LM_ERR("invalid param list\n");
40 return 0;
41 }
42
43 new_p = pkg_malloc(sizeof(evi_param_t));
44 if (!new_p) {
45 LM_ERR("no more pkg mem for new parameter\n");
46 return 0;
47 }
48 memset(new_p, 0, sizeof(evi_param_t));
49
50 if (name)
51 new_p->name = *name;
52
53 new_p->next = NULL;
54 if (list->last) {
55 list->last->next = new_p;
56 list->last = new_p;
57 } else {
58 list->last = list->first = new_p;
59 }
60 return new_p;
61}
62
63int evi_param_set(evi_param_p el, const void *param, int flags)
64{

Callers 15

init_profiling_eventFunction · 0.85
src_init_eventsFunction · 0.85
dm_init_eviFunction · 0.85
msrpua_evi_initFunction · 0.85
ua_evi_initFunction · 0.85
fss_evi_initFunction · 0.85
rmq_evi_initFunction · 0.85
ul_event_initFunction · 0.85
h2_init_eviFunction · 0.85
msrpgw_evi_initFunction · 0.85
mod_initFunction · 0.85
mod_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected