Searches the module list for the "name" cmd_export_t structure. */
| 529 | /* Searches the module list for the "name" cmd_export_t structure. |
| 530 | */ |
| 531 | const 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 |
no outgoing calls
no test coverage detected