comparison Plugin/Plugin.cpp @ 20:17f775299b4a

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2020 07:52:24 +0200
parents b06103a50c95
children 7c8dfa752242
comparison
equal deleted inserted replaced
19:b06103a50c95 20:17f775299b4a
22 #include "../Framework/PushMode/PushJob.h" 22 #include "../Framework/PushMode/PushJob.h"
23 #include "../Framework/TransferScheduler.h" 23 #include "../Framework/TransferScheduler.h"
24 24
25 #include <EmbeddedResources.h> 25 #include <EmbeddedResources.h>
26 26
27 #include <Core/ChunkedBuffer.h> 27 #include <ChunkedBuffer.h>
28 #include <Core/Compression/GzipCompressor.h> 28 #include <Compression/GzipCompressor.h>
29 #include <Core/Logging.h> 29 #include <Logging.h>
30 30
31 31
32 static bool DisplayPerformanceWarning() 32 static bool DisplayPerformanceWarning()
33 { 33 {
34 (void) DisplayPerformanceWarning; // Disable warning about unused function 34 (void) DisplayPerformanceWarning; // Disable warning about unused function
614 614
615 extern "C" 615 extern "C"
616 { 616 {
617 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context) 617 ORTHANC_PLUGINS_API int32_t OrthancPluginInitialize(OrthancPluginContext* context)
618 { 618 {
619 Orthanc::Logging::Initialize(context); 619 Orthanc::Logging::InitializePluginContext(context);
620 assert(DisplayPerformanceWarning()); 620 assert(DisplayPerformanceWarning());
621 621
622 OrthancPlugins::SetGlobalContext(context); 622 OrthancPlugins::SetGlobalContext(context);
623 623
624 /* Check the version of the Orthanc core */ 624 /* Check the version of the Orthanc core */