Subscribe DeviceRunner for config properties

This commit is contained in:
Alexey Rybalchenko
2019-06-11 13:05:27 +02:00
committed by Dennis Klein
parent 7c9744760e
commit 4281d7b27e
4 changed files with 91 additions and 42 deletions

View File

@@ -56,6 +56,11 @@ class DeviceRunner
auto Run() -> int;
auto RunWithExceptionHandlers() -> int;
bool HandleGeneralOptions();
void SubscribeForConfigChange();
void UnsubscribeFromConfigChange();
template<typename H>
auto AddHook(std::function<void(DeviceRunner&)> hook) -> void
{