diff options
author | Max Kellermann <max@musicpd.org> | 2017-12-19 08:45:34 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-12-19 11:57:52 +0100 |
commit | 86a06a7acc1ada8cea245bfcb7277b3e50c488f0 (patch) | |
tree | 3e7444949dad83591762fa3ea377f20cbcb2eed8 /src/output/Control.cxx | |
parent | d05c3f4e4d6ae64a9a2ce621a562bea919725cba (diff) |
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.
Diffstat (limited to 'src/output/Control.cxx')
-rw-r--r-- | src/output/Control.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/output/Control.cxx b/src/output/Control.cxx index f75bb2134..8b56cf142 100644 --- a/src/output/Control.cxx +++ b/src/output/Control.cxx @@ -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 { |