mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user