MCPcopy Create free account
hub / github.com/apache/trafficserver / RecConfigReadPluginDir

Function RecConfigReadPluginDir

src/records/RecCore.cc:1064–1076  ·  view source on GitHub ↗

------------------------------------------------------------------------- RecConfigReadPluginDir -------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1062// RecConfigReadPluginDir
1063//-------------------------------------------------------------------------
1064std::string
1065RecConfigReadPluginDir()
1066{
1067 char buf[PATH_NAME_MAX];
1068
1069 buf[0] = '\0';
1070 RecGetRecordString("proxy.config.plugin.plugin_dir", buf, PATH_NAME_MAX);
1071 if (strlen(buf) > 0) {
1072 return Layout::get()->relative(buf);
1073 } else {
1074 return Layout::get()->libexecdir;
1075 }
1076}
1077
1078//-------------------------------------------------------------------------
1079// RecConfigReadConfigPath

Callers 6

InitializeMethod · 0.85
produce_layoutFunction · 0.85
plugin_initFunction · 0.85
loadMethod · 0.85
TSPluginDirGetFunction · 0.85
initHRWLibrariesFunction · 0.85

Calls 3

RecGetRecordStringFunction · 0.85
relativeMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected