Skip to content
Snippets Groups Projects
Commit c6b859da authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

ringdht: make public some methods/attributes


To prepare the file transfer this patch add public access
on the DhtRunner attribute and forEachDevice() API.

Change-Id: I111fa7cd3af56b765781fec4ca3ced20f18269d1
Reviewed-by: default avatarAnthony Léonard <anthony.leonard@savoirfairelinux.com>
parent 1954e251
Branches
No related tags found
No related merge requests found
...@@ -307,6 +307,12 @@ class RingAccount : public SIPAccountBase { ...@@ -307,6 +307,12 @@ class RingAccount : public SIPAccountBase {
void registerName(const std::string& password, const std::string& name); void registerName(const std::string& password, const std::string& name);
#endif #endif
dht::DhtRunner& dht() { return dht_; }
void forEachDevice(const dht::InfoHash& to,
std::function<void(const std::shared_ptr<RingAccount>&,
const dht::InfoHash&)> op,
std::function<void(bool)> end = {});
private: private:
NON_COPYABLE(RingAccount); NON_COPYABLE(RingAccount);
...@@ -360,8 +366,6 @@ class RingAccount : public SIPAccountBase { ...@@ -360,8 +366,6 @@ class RingAccount : public SIPAccountBase {
void handleEvents(); void handleEvents();
void forEachDevice(const dht::InfoHash& to, std::function<void(const std::shared_ptr<RingAccount>&, const dht::InfoHash&)> op, std::function<void(bool)> end = {});
void startOutgoingCall(const std::shared_ptr<SIPCall>& call, const std::string toUri); void startOutgoingCall(const std::shared_ptr<SIPCall>& call, const std::string toUri);
void onConnectedOutgoingCall(SIPCall& call, const std::string& to_id, IpAddr target); void onConnectedOutgoingCall(SIPCall& call, const std::string& to_id, IpAddr target);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment