comparison Plugin/PluginContext.cpp @ 5:5e6de82bb10f

use of user properties instead of BidirectionalPeers option
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 18 Sep 2018 15:39:02 +0200
parents 95226b754d9e
children 4c3437217518
comparison
equal deleted inserted replaced
4:1ed03945c057 5:5e6de82bb10f
56 static std::auto_ptr<PluginContext> singleton_; 56 static std::auto_ptr<PluginContext> singleton_;
57 return singleton_; 57 return singleton_;
58 } 58 }
59 59
60 60
61 bool PluginContext::LookupBidirectionalPeer(std::string& remoteSelf,
62 const std::string& remotePeer) const
63 {
64 BidirectionalPeers::const_iterator found = bidirectionalPeers_.find(remotePeer);
65
66 if (found == bidirectionalPeers_.end())
67 {
68 return false;
69 }
70 else
71 {
72 remoteSelf = found->second;
73 return true;
74 }
75 }
76
77
78 void PluginContext::Initialize(OrthancPluginContext* context, 61 void PluginContext::Initialize(OrthancPluginContext* context,
79 size_t threadsCount, 62 size_t threadsCount,
80 size_t targetBucketSize, 63 size_t targetBucketSize,
81 size_t maxPushTransactions, 64 size_t maxPushTransactions,
82 size_t memoryCacheSize) 65 size_t memoryCacheSize)