Mercurial > hg > orthanc-transfers
diff Plugin/PluginContext.h @ 8:4c3437217518
fix for compatibility with simplified OrthancPluginCppWrapper
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 05 Dec 2018 09:16:51 +0100 |
parents | 5e6de82bb10f |
children | 7e207ade2f1a |
line wrap: on
line diff
--- a/Plugin/PluginContext.h Fri Sep 21 12:52:23 2018 +0200 +++ b/Plugin/PluginContext.h Wed Dec 05 09:16:51 2018 +0100 @@ -32,7 +32,6 @@ { private: // Runtime structures - OrthancPluginContext* context_; OrthancInstancesCache cache_; ActivePushTransactions pushTransactions_; Orthanc::Semaphore semaphore_; @@ -43,8 +42,7 @@ size_t targetBucketSize_; - PluginContext(OrthancPluginContext* context, - size_t threadsCount, + PluginContext(size_t threadsCount, size_t targetBucketSize, size_t maxPushTransactions, size_t memoryCacheSize); @@ -52,11 +50,6 @@ static std::auto_ptr<PluginContext>& GetSingleton(); public: - OrthancPluginContext* GetOrthanc() - { - return context_; - } - OrthancInstancesCache& GetCache() { return cache_; @@ -87,8 +80,7 @@ return targetBucketSize_; } - static void Initialize(OrthancPluginContext* context, - size_t threadsCount, + static void Initialize(size_t threadsCount, size_t targetBucketSize, size_t maxPushTransactions, size_t memoryCacheSize);