comparison OrthancServer/Plugins/Samples/MultitenantDicom/Plugin.cpp @ 5538:6ce05f8b5b13

deprecating OrthancPluginSetDescription2(), OrthancPluginExtendOrthancExplorer2() and OrthancPluginSetRootUri2()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 16 Mar 2024 11:34:28 +0100
parents 48b8dae6dc77
children dce22a789a2b
comparison
equal deleted inserted replaced
5537:a85e49dcb63e 5538:6ce05f8b5b13
17 * 17 *
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 **/ 20 **/
21 21
22
23 #define ORTHANC_PLUGIN_NAME "multitenant-dicom"
22 24
23 #include "MultitenantDicomServer.h" 25 #include "MultitenantDicomServer.h"
24 26
25 #include "../../../../OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.h" 27 #include "../../../../OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.h"
26 #include "../../../../OrthancFramework/Sources/Logging.h" 28 #include "../../../../OrthancFramework/Sources/Logging.h"
124 Orthanc::FromDcmtkBridge::InitializeDictionary(false /* loadPrivateDictionary */); 126 Orthanc::FromDcmtkBridge::InitializeDictionary(false /* loadPrivateDictionary */);
125 127
126 /* Disable "gethostbyaddr" (which results in memory leaks) and use raw IP addresses */ 128 /* Disable "gethostbyaddr" (which results in memory leaks) and use raw IP addresses */
127 dcmDisableGethostbyaddr.set(OFTrue); 129 dcmDisableGethostbyaddr.set(OFTrue);
128 130
129 OrthancPluginSetDescription(context, "Multitenant plugin for Orthanc."); 131 OrthancPluginSetDescription2(context, ORTHANC_PLUGIN_NAME, "Multitenant plugin for Orthanc.");
130 132
131 OrthancPluginRegisterOnChangeCallback(context, OnChangeCallback); 133 OrthancPluginRegisterOnChangeCallback(context, OnChangeCallback);
132 134
133 try 135 try
134 { 136 {
184 } 186 }
185 187
186 188
187 ORTHANC_PLUGINS_API const char* OrthancPluginGetName() 189 ORTHANC_PLUGINS_API const char* OrthancPluginGetName()
188 { 190 {
189 return "multitenant-dicom"; 191 return ORTHANC_PLUGIN_NAME;
190 } 192 }
191 193
192 194
193 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion() 195 ORTHANC_PLUGINS_API const char* OrthancPluginGetVersion()
194 { 196 {