output/Interface: add "attributes" map

These attributes are printed in the "outputs" response, and the new
command "outputset" allows setting new values.

No attributes are currently implemented.
This commit is contained in:
Max Kellermann
2017-12-19 08:45:34 +01:00
parent d05c3f4e4d
commit 86a06a7acc
13 changed files with 161 additions and 1 deletions
+12
View File
@@ -76,6 +76,18 @@ AudioOutputControl::GetMixer() const noexcept
return output->mixer;
}
const std::map<std::string, std::string>
AudioOutputControl::GetAttributes() const noexcept
{
return output->GetAttributes();
}
void
AudioOutputControl::SetAttribute(std::string &&name, std::string &&value)
{
output->SetAttribute(std::move(name), std::move(value));
}
bool
AudioOutputControl::LockSetEnabled(bool new_value) noexcept
{