comparison Applications/StoneWebViewer/Plugin/Plugin.cpp @ 2119:11bc8a304038

fix deprecated calls
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 16 Mar 2024 12:04:50 +0100
parents 7926c9a09757
children 4cc9e4a54a89
comparison
equal deleted inserted replaced
2118:7926c9a09757 2119:11bc8a304038
277 return -1; 277 return -1;
278 } 278 }
279 279
280 try 280 try
281 { 281 {
282 OrthancPluginSetDescription(OrthancPlugins::GetGlobalContext(), "Stone Web viewer"); 282 OrthancPlugins::SetDescription(PLUGIN_NAME, "Stone Web viewer");
283 283
284 std::string explorer; 284 std::string explorer;
285 Orthanc::EmbeddedResources::GetFileResource( 285 Orthanc::EmbeddedResources::GetFileResource(
286 explorer, Orthanc::EmbeddedResources::ORTHANC_EXPLORER); 286 explorer, Orthanc::EmbeddedResources::ORTHANC_EXPLORER);
287 OrthancPluginExtendOrthancExplorer(OrthancPlugins::GetGlobalContext(), explorer.c_str()); 287 OrthancPlugins::ExtendOrthancExplorer(PLUGIN_NAME, explorer.c_str());
288 288
289 OrthancPlugins::RegisterRestCallback<ServeConfiguration> 289 OrthancPlugins::RegisterRestCallback<ServeConfiguration>
290 (STONE_WEB_VIEWER_ROOT + "/configuration.json", true); 290 (STONE_WEB_VIEWER_ROOT + "/configuration.json", true);
291 291
292 OrthancPlugins::RegisterRestCallback 292 OrthancPlugins::RegisterRestCallback