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

Function mq_head_get

modules/mqueue/mqueue_api.c:157–173  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

155 *
156 */
157mq_head_t *mq_head_get(str *name)
158{
159 mq_head_t *mh = NULL;
160
161 mh = _mq_head_list;
162 if(!name) {
163 return mh;
164 }
165 while(mh != NULL) {
166 if(name->len == mh->name.len
167 && strncmp(mh->name.s, name->s, name->len) == 0) {
168 return mh;
169 }
170 mh = mh->next;
171 }
172 return NULL;
173}
174
175/**
176 *

Callers 9

mq_head_fetchFunction · 0.85
mq_item_addFunction · 0.85
pv_get_mqkFunction · 0.85
get_mqkFunction · 0.85
get_mqvFunction · 0.85
pv_get_mqvFunction · 0.85
_mq_get_csizeFunction · 0.85
mi_get_sizesFunction · 0.85
mi_fetch_bulkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected