MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / findPlugin

Method findPlugin

src/yvalve/PluginManager.cpp:318–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

nextMethod · 0.80

Calls 1

getCountMethod · 0.45

Tested by

no test coverage detected