From ebdbf9a1cd5308bf1c64d8dc912e0ea0e9ac8633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Fri, 27 Dec 2019 17:20:04 +0100 Subject: Network server sending announcements --- include/erebos/network.h | 18 ++++++++++++++++++ include/erebos/storage.h | 6 ++---- 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 include/erebos/network.h (limited to 'include/erebos') diff --git a/include/erebos/network.h b/include/erebos/network.h new file mode 100644 index 0000000..c29096f --- /dev/null +++ b/include/erebos/network.h @@ -0,0 +1,18 @@ +#pragma once + +#include + +namespace erebos { + +class Server +{ +public: + Server(const Identity &); + ~Server(); + +private: + struct Priv; + const std::shared_ptr p; +}; + +}; diff --git a/include/erebos/storage.h b/include/erebos/storage.h index 3777572..95a4574 100644 --- a/include/erebos/storage.h +++ b/include/erebos/storage.h @@ -124,10 +124,8 @@ public: template std::optional> as() const; - private: - friend class Record; - std::string name; - Variant value; + const std::string name; + const Variant value; }; private: -- cgit v1.2.3