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

Function find_mod_cmd_export_t

sr_module.c:531–548  ·  view source on GitHub ↗

Searches the module list for the "name" cmd_export_t structure. */

Source from the content-addressed store, hash-verified

529/* Searches the module list for the "name" cmd_export_t structure.
530 */
531const cmd_export_t* find_mod_cmd_export_t(const char* name, int flags)
532{
533 struct sr_module* t;
534 const cmd_export_t* cmd;
535
536 for(t=modules;t;t=t->next){
537 for(cmd=t->exports->cmds; cmd && cmd->name; cmd++){
538 if((strcmp(name, cmd->name)==0)&&((cmd->flags & flags) == flags)){
539 LM_DBG("found <%s> in module %s [%s]\n",
540 name, t->exports->name, t->path);
541 return cmd;
542 }
543 }
544 }
545
546 LM_DBG("<%s> not found \n", name);
547 return 0;
548}
549
550
551

Callers 2

find_cmd_export_tFunction · 0.85
find_exportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected