MCPcopy Create free account
hub / github.com/Alexays/Waybar / getOutputConfigs

Method getOutputConfigs

src/config.cpp:225–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225std::vector<Json::Value> Config::getOutputConfigs(const std::string& name,
226 const std::string& identifier) {
227 std::vector<Json::Value> configs;
228 if (config_.isArray()) {
229 for (auto const& config : config_) {
230 if (config.isObject() && isValidOutput(config, name, identifier)) {
231 configs.push_back(config);
232 }
233 }
234 } else if (isValidOutput(config_, name, identifier)) {
235 configs.push_back(config_);
236 }
237 return configs;
238}
239
240} // namespace waybar

Callers

nothing calls this directly

Calls 1

isValidOutputFunction · 0.85

Tested by

no test coverage detected