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

Function findPluginConfig

src/yvalve/PluginManager.cpp:251–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 }
250
251 IConfig* findPluginConfig(ConfigFile* pluginLoaderConfig, const PathName& confName)
252 {
253 FbLocalStatus ls;
254
255 if (pluginLoaderConfig)
256 {
257 const ConfigFile::Parameter* p = pluginLoaderConfig->findParameter("Config");
258
259 if (p)
260 {
261 RefPtr<ConfigFile> configSection(findInPluginsConf("Config", p->value.c_str()));
262
263 if (configSection.hasData())
264 {
265 IConfig* rc = FB_NEW ConfigAccess(configSection);
266 rc->addRef();
267 return rc;
268 }
269 }
270 }
271
272 IConfig* rc = PluginManagerInterfacePtr()->getConfig(&ls, confName.nullStr());
273 check(&ls);
274 return rc;
275 }
276
277
278 // Plugins registered when loading plugin module.

Callers 2

getDefaultConfigMethod · 0.85
getPluginConfigMethod · 0.85

Calls 10

findInPluginsConfFunction · 0.85
ConfigAccessClass · 0.85
findParameterMethod · 0.80
checkFunction · 0.50
c_strMethod · 0.45
hasDataMethod · 0.45
addRefMethod · 0.45
getConfigMethod · 0.45
nullStrMethod · 0.45

Tested by

no test coverage detected