changeset 156:43b77aa34468

fix deprecated calls
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 22 Mar 2024 15:09:44 +0100
parents 6673a963ddf0
children 9434bb40e27c
files Plugin/Plugin.cpp
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Plugin/Plugin.cpp	Fri Mar 22 15:08:48 2024 +0100
+++ b/Plugin/Plugin.cpp	Fri Mar 22 15:09:44 2024 +0100
@@ -31,6 +31,8 @@
 #include <SerializationToolbox.h>
 #include <EmbeddedResources.h>
 
+#define ORTHANC_PLUGIN_NAME  "authorization"
+
 
 // Configuration of the authorization plugin
 static bool resourceTokensEnabled_ = false;
@@ -1089,7 +1091,7 @@
     Orthanc::Logging::Initialize(context);
 #endif
     
-    OrthancPluginSetDescription(context, "Advanced authorization plugin for Orthanc.");
+    OrthancPlugins::SetDescription(ORTHANC_PLUGIN_NAME, "Advanced authorization plugin for Orthanc.");
 
     try
     {
@@ -1435,7 +1437,7 @@
 
   ORTHANC_PLUGINS_API const char* OrthancPluginGetName()
   {
-    return "authorization";
+    return ORTHANC_PLUGIN_NAME;
   }