/* * searches the module list and returns pointer to "name" function in module * "mod" * 0 if not found * flags parameter is OR value of all flags that must match */ cmd_function find_mod_export(char* mod, char* name, int param_no, int flags) { ksr_cmd_export_t* cmd; cmd=find_mod_export_record(mod, name, param_no, flags); if (cmd) return cmd->function; LM_DBG("<%s> in module <%s> not found\n", name, mod); return 0; }
/* * searches the module list and returns pointer to "name" function in module * "mod" * 0 if not found * flags parameter is OR value of all flags that must match */ cmd_function find_mod_export(char* mod, char* name, int param_no, int flags) { sr31_cmd_export_t* cmd; unsigned mver; cmd=find_mod_export_record(mod, name, param_no, flags, &mver); if (cmd) return cmd->function; DBG("find_mod_export: <%s> in module <%s> not found\n", name, mod); return 0; }
/* searches the module list for function name and returns * a pointer to the "name" function record union or 0 if not found * mod==0 is a wildcard matching all modules * flags parameter is OR value of all flags that must match */ ksr_cmd_export_t* find_export_record(char* name, int param_no, int flags) { return find_mod_export_record(0, name, param_no, flags); }
/* searches the module list for function name and returns * a pointer to the "name" function record union or 0 if not found * sets also *mod_if_ver to the module interface version (needed to know * which member of the union should be accessed v0 or v1) * mod==0 is a wildcard matching all modules * flags parameter is OR value of all flags that must match */ sr31_cmd_export_t* find_export_record(char* name, int param_no, int flags, unsigned* mod_if_ver) { return find_mod_export_record(0, name, param_no, flags, mod_if_ver); }