summaryrefslogtreecommitdiff
path: root/include/erebos
diff options
context:
space:
mode:
Diffstat (limited to 'include/erebos')
-rw-r--r--include/erebos/message.h3
-rw-r--r--include/erebos/network.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/erebos/message.h b/include/erebos/message.h
index 497b536..011007a 100644
--- a/include/erebos/message.h
+++ b/include/erebos/message.h
@@ -12,6 +12,7 @@ namespace erebos {
using std::unique_ptr;
+class Contact;
class Identity;
class DirectMessage
@@ -94,6 +95,8 @@ public:
DirectMessageThread thread(const Identity &);
+ DirectMessage send(const Identity &, const std::string &);
+ DirectMessage send(const Contact &, const std::string &);
DirectMessage send(const Peer &, const std::string &);
private:
diff --git a/include/erebos/network.h b/include/erebos/network.h
index 66edfa4..6a3112a 100644
--- a/include/erebos/network.h
+++ b/include/erebos/network.h
@@ -34,6 +34,7 @@ public:
template<class S> S & svc();
class PeerList & peerList() const;
+ optional<erebos::Peer> peer(const Identity &) const;
void addPeer(const string & node) const;
void addPeer(const string & node, const string & service) const;