MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / OnPair

Method OnPair

src/command/FileCommands.cxx:106–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 :NullTagHandler(WANT_PAIR), response(_response) {}
105
106 void OnPair(std::string_view key, std::string_view value) noexcept override {
107 if (IsValidName(key) && IsValidValue(value))
108 response.Fmt("{}: {}\n", key, value);
109 }
110};
111
112CommandResult

Callers

nothing calls this directly

Calls 2

IsValidNameFunction · 0.85
IsValidValueFunction · 0.85

Tested by

no test coverage detected