comparison Plugin/Plugin.cpp @ 156:43b77aa34468

fix deprecated calls
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 22 Mar 2024 15:09:44 +0100
parents 3683f3d083bd
children db1a5d1634e0
comparison
equal deleted inserted replaced
155:6673a963ddf0 156:43b77aa34468
28 #include <Compatibility.h> // For std::unique_ptr<> 28 #include <Compatibility.h> // For std::unique_ptr<>
29 #include <Logging.h> 29 #include <Logging.h>
30 #include <Toolbox.h> 30 #include <Toolbox.h>
31 #include <SerializationToolbox.h> 31 #include <SerializationToolbox.h>
32 #include <EmbeddedResources.h> 32 #include <EmbeddedResources.h>
33
34 #define ORTHANC_PLUGIN_NAME "authorization"
33 35
34 36
35 // Configuration of the authorization plugin 37 // Configuration of the authorization plugin
36 static bool resourceTokensEnabled_ = false; 38 static bool resourceTokensEnabled_ = false;
37 static bool userTokensEnabled_ = false; 39 static bool userTokensEnabled_ = false;
1087 Orthanc::Logging::InitializePluginContext(context); 1089 Orthanc::Logging::InitializePluginContext(context);
1088 #else 1090 #else
1089 Orthanc::Logging::Initialize(context); 1091 Orthanc::Logging::Initialize(context);
1090 #endif 1092 #endif
1091 1093
1092 OrthancPluginSetDescription(context, "Advanced authorization plugin for Orthanc."); 1094 OrthancPlugins::SetDescription(ORTHANC_PLUGIN_NAME, "Advanced authorization plugin for Orthanc.");
1093 1095
1094 try 1096 try
1095 { 1097 {
1096 static const char* PLUGIN_SECTION = "Authorization"; 1098 static const char* PLUGIN_SECTION = "Authorization";
1097 1099
1433 } 1435 }
1434 1436
1435 1437
1436 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() 1438 ORTHANC_PLUGINS_API const char* OrthancPluginGetName()
1437 { 1439 {
1438 return "authorization"; 1440 return ORTHANC_PLUGIN_NAME;
1439 } 1441 }
1440 1442
1441 1443
1442 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() 1444 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion()
1443 { 1445 {