summaryrefslogtreecommitdiff
path: root/include/erebos
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2019-12-27 17:20:04 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2019-12-27 22:59:53 +0100
commitebdbf9a1cd5308bf1c64d8dc912e0ea0e9ac8633 (patch)
treef4a09848ef09bfd816b8aefd6dc3b4e5a5440905 /include/erebos
parenta02ef25970cb97ab4c29b3859799062431ae668b (diff)
Network server sending announcements
Diffstat (limited to 'include/erebos')
-rw-r--r--include/erebos/network.h18
-rw-r--r--include/erebos/storage.h6
2 files changed, 20 insertions, 4 deletions
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 <erebos/identity.h>
+
+namespace erebos {
+
+class Server
+{
+public:
+ Server(const Identity &);
+ ~Server();
+
+private:
+ struct Priv;
+ const std::shared_ptr<Priv> 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<typename T> std::optional<Stored<T>> as() const;
- private:
- friend class Record;
- std::string name;
- Variant value;
+ const std::string name;
+ const Variant value;
};
private: