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

Function mq_set_dbmode

modules/mqueue/mqueue_api.c:178–192  ·  view source on GitHub ↗

* */

Source from the content-addressed store, hash-verified

176 *
177 */
178int mq_set_dbmode(str *name, int dbmode)
179{
180 mq_head_t *mh = NULL;
181
182 mh = _mq_head_list;
183 while(mh != NULL) {
184 if(name->len == mh->name.len
185 && strncmp(mh->name.s, name->s, name->len) == 0) {
186 mh->dbmode = dbmode;
187 return 0;
188 }
189 mh = mh->next;
190 }
191 return -1;
192}
193
194/**
195 *

Callers 1

mq_paramFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected