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:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user