Add reset mechanism to logid::Device

This commit is contained in:
pixl
2020-07-05 16:16:38 -04:00
parent 5bf5dc75b5
commit 71b0ddd279
2 changed files with 32 additions and 0 deletions
+5
View File
@@ -62,6 +62,8 @@ namespace logid
void wakeup();
void sleep();
void reset();
template<typename T>
std::shared_ptr<T> getFeature(std::string name) {
auto it = _features.find(name);
@@ -96,6 +98,9 @@ namespace logid
std::map<std::string, std::shared_ptr<features::DeviceFeature>>
_features;
DeviceConfig _config;
void _makeResetMechanism();
std::unique_ptr<std::function<void()>> _reset_mechanism;
};
}