# HG changeset patch # User Sebastien Jodogne # Date 1711116584 -3600 # Node ID 43b77aa34468c6785a29a20e27529b20b8174dea # Parent 6673a963ddf05e5e1921d098a08c1628abd09b1c fix deprecated calls diff -r 6673a963ddf0 -r 43b77aa34468 Plugin/Plugin.cpp --- 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 #include +#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; }