| 161 | |
| 162 | |
| 163 | FPTR_INT Module::lookup(const char* module, const char* name, Database* dbb) |
| 164 | { |
| 165 | // Try to find loadable module |
| 166 | Module m = lookupModule(module); |
| 167 | if (! m) |
| 168 | { |
| 169 | return 0; |
| 170 | } |
| 171 | |
| 172 | Firebird::string symbol; |
| 173 | terminate_at_space(symbol, name); |
| 174 | void* rc = m.lookupSymbol(symbol); |
| 175 | if (rc) |
| 176 | dbb->registerModule(m); |
| 177 | |
| 178 | return (FPTR_INT)rc; |
| 179 | } |
| 180 | |
| 181 | // flag 'udf' means pass name-path through UdfDirectoryList |
| 182 | Module Module::lookupModule(const char* name) |
no test coverage detected