| 316 | } |
| 317 | |
| 318 | int findPlugin(unsigned int type, const PathName& name) |
| 319 | { |
| 320 | // typically modules do not contain too many plugins |
| 321 | // therefore direct array scan is OK here |
| 322 | for (unsigned int i = 0; i < regPlugins.getCount(); ++i) |
| 323 | { |
| 324 | if (type == regPlugins[i].type && name == regPlugins[i].name) |
| 325 | { |
| 326 | return i; |
| 327 | } |
| 328 | } |
| 329 | |
| 330 | return -1; |
| 331 | } |
| 332 | |
| 333 | RegisteredPlugin& getPlugin(unsigned int i) |
| 334 | { |