# HG changeset patch # User Sebastien Jodogne # Date 1711118554 -3600 # Node ID e662d794da41ff26b7db5eb9cf77de0dd7f72d07 # Parent ec47d2182ac6055b71a2d7a081b30b6a5aab66ce fix deprecated calls diff -r ec47d2182ac6 -r e662d794da41 Sources/Plugin.cpp --- a/Sources/Plugin.cpp Fri Mar 22 15:41:15 2024 +0100 +++ b/Sources/Plugin.cpp Fri Mar 22 15:42:34 2024 +0100 @@ -31,6 +31,9 @@ #include +#define ORTHANC_PLUGIN_NAME "volview" + + // Forward declaration void ReadStaticAsset(std::string& target, const std::string& path); @@ -131,14 +134,14 @@ Orthanc::Logging::Initialize(context); #endif - OrthancPluginSetDescription(context, "Kitware's VolView for Orthanc."); + OrthancPlugins::SetDescription(ORTHANC_PLUGIN_NAME, "Kitware's VolView for Orthanc."); OrthancPlugins::RegisterRestCallback("/volview/(.*)", true); // Extend the default Orthanc Explorer with custom JavaScript for VolView std::string explorer; Orthanc::EmbeddedResources::GetFileResource(explorer, Orthanc::EmbeddedResources::ORTHANC_EXPLORER); - OrthancPluginExtendOrthancExplorer(OrthancPlugins::GetGlobalContext(), explorer.c_str()); + OrthancPlugins::ExtendOrthancExplorer(ORTHANC_PLUGIN_NAME, explorer.c_str()); return 0; } @@ -151,7 +154,7 @@ ORTHANC_PLUGINS_API const char* OrthancPluginGetName() { - return "volview"; + return ORTHANC_PLUGIN_NAME; }