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

Function msg_list_el_new

modules/msilo/ms_msg_list.c:40–53  ·  view source on GitHub ↗

* create a new element */

Source from the content-addressed store, hash-verified

38 * create a new element
39 */
40msg_list_el msg_list_el_new(void)
41{
42 msg_list_el mle = NULL;
43 mle = (msg_list_el)shm_malloc(sizeof(t_msg_list_el));
44 if(mle == NULL)
45 return NULL;
46
47 mle->next = NULL;
48 mle->prev = NULL;
49 mle->msgid = 0;
50 mle->flag = MS_MSG_NULL;
51
52 return mle;
53}
54
55/**
56 * free an element

Callers 1

msg_list_check_msgFunction · 0.85

Calls 1

shm_mallocFunction · 0.85

Tested by

no test coverage detected