Mercurial > hg > orthanc-transfers
comparison Plugin/Plugin.cpp @ 70:3f43bfbea00e
fix deprecated calls
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 22 Mar 2024 15:37:40 +0100 |
parents | b09adb6aa199 |
children | 1e396fb509ca |
comparison
equal
deleted
inserted
replaced
69:7cd9be8b8594 | 70:3f43bfbea00e |
---|---|
637 << ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER | 637 << ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER |
638 << " to run this plugin"; | 638 << " to run this plugin"; |
639 return -1; | 639 return -1; |
640 } | 640 } |
641 | 641 |
642 OrthancPluginSetDescription(context, "Accelerates transfers and provides " | 642 OrthancPlugins::SetDescription(PLUGIN_NAME, "Accelerates transfers and provides " |
643 "storage commitment between Orthanc peers"); | 643 "storage commitment between Orthanc peers"); |
644 | 644 |
645 try | 645 try |
646 { | 646 { |
647 size_t threadsCount = 4; | 647 size_t threadsCount = 4; |
648 size_t targetBucketSize = 4096; // In KB | 648 size_t targetBucketSize = 4096; // In KB |
706 | 706 |
707 /* Extend the default Orthanc Explorer with custom JavaScript */ | 707 /* Extend the default Orthanc Explorer with custom JavaScript */ |
708 std::string explorer; | 708 std::string explorer; |
709 Orthanc::EmbeddedResources::GetFileResource | 709 Orthanc::EmbeddedResources::GetFileResource |
710 (explorer, Orthanc::EmbeddedResources::ORTHANC_EXPLORER); | 710 (explorer, Orthanc::EmbeddedResources::ORTHANC_EXPLORER); |
711 OrthancPluginExtendOrthancExplorer(context, explorer.c_str()); | 711 OrthancPlugins::ExtendOrthancExplorer(PLUGIN_NAME, explorer); |
712 } | 712 } |
713 catch (Orthanc::OrthancException& e) | 713 catch (Orthanc::OrthancException& e) |
714 { | 714 { |
715 LOG(ERROR) << "Cannot initialize transfers accelerator plugin: " << e.What(); | 715 LOG(ERROR) << "Cannot initialize transfers accelerator plugin: " << e.What(); |
716 return -1; | 716 return -1; |