diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-01-20 20:51:10 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-01-20 20:51:10 +0100 |
commit | 05ecd0105d4e723517bc269c9b42bc650743ee89 (patch) | |
tree | 4ef3a1455ab471fca8b261ed7a522c33ca5f0e20 /include | |
parent | b60e7b5e07033b926c29042ba6b267d5af32f7e3 (diff) |
Changing local state via service context
Diffstat (limited to 'include')
-rw-r--r-- | include/erebos/service.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/erebos/service.h b/include/erebos/service.h index 2d6fbce..fa7f105 100644 --- a/include/erebos/service.h +++ b/include/erebos/service.h @@ -1,5 +1,6 @@ #pragma once +#include <erebos/state.h> #include <erebos/uuid.h> #include <memory> @@ -22,6 +23,9 @@ public: const class Ref & ref() const; const class Peer & peer() const; + const Stored<LocalState> & local() const; + void local(const LocalState &); + private: std::unique_ptr<Priv> p; }; |