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
+5
View File
@@ -30,6 +30,8 @@
#include <utility>
#include <exception>
#include <string>
#include <map>
#ifndef NDEBUG
#include <assert.h>
@@ -324,6 +326,9 @@ public:
void BeginDestroy() noexcept;
void FinishDestroy() noexcept;
const std::map<std::string, std::string> GetAttributes() const noexcept;
void SetAttribute(std::string &&name, std::string &&value);
/**
* Enables the device, but don't wait for completion.
*