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: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
This commit is contained in:
Guillaume Roguez
2017-11-20 14:09:31 -05:00
parent 1954e251d2
commit c6b859dabc

View File

@ -307,6 +307,12 @@ class RingAccount : public SIPAccountBase {
void registerName(const std::string& password, const std::string& name);
#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:
NON_COPYABLE(RingAccount);
@ -360,8 +366,6 @@ class RingAccount : public SIPAccountBase {
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 onConnectedOutgoingCall(SIPCall& call, const std::string& to_id, IpAddr target);