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

Function mq_head_fetch_item

modules/mqueue/mqueue_api.c:231–244  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

229 *
230 */
231mq_item_t *mq_head_fetch_item(mq_head_t *mh)
232{
233 mq_item_t *ret;
234
235 if(mh->ifirst == NULL)
236 return NULL;
237
238 ret = mh->ifirst;
239 mh->ifirst = mh->ifirst->next;
240 if(mh->ifirst == NULL)
241 mh->ilast = NULL;
242 mh->csize--;
243 return ret;
244}
245
246/**
247 *

Callers 2

mq_head_fetchFunction · 0.85
mi_fetch_bulkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected