diff options
Diffstat (limited to 'src/processing.cpp')
-rw-r--r-- | src/processing.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/processing.cpp b/src/processing.cpp index 923e147..be7bf12 100644 --- a/src/processing.cpp +++ b/src/processing.cpp @@ -21,3 +21,19 @@ bool getWellKnown( wellKnown = it->second; return true; } + +bool needToIntrospect(const std::string& processName, + const WhiteBlackList& whiteList, + const WhiteBlackList& blackList) +{ + auto inWhitelist = + std::find_if(whiteList.begin(), whiteList.end(), + [&processName](const auto& prefix) { + return boost::starts_with(processName, prefix); + }) != whiteList.end(); + + // This holds full service names, not prefixes + auto inBlacklist = blackList.find(processName) != blackList.end(); + + return inWhitelist && !inBlacklist; +} |