# HG changeset patch # User Sebastien Jodogne # Date 1710662900 -3600 # Node ID 9c5a7689bfd21ca55458a770e5a459e5e7cd12a1 # Parent 2b3eeacf636cb4b50b7971d9711c0669e3137972 removed deprecated calls in sample plugin diff -r 2b3eeacf636c -r 9c5a7689bfd2 OrthancServer/Plugins/Samples/Basic/Plugin.c --- a/OrthancServer/Plugins/Samples/Basic/Plugin.c Sat Mar 16 11:46:27 2024 +0100 +++ b/OrthancServer/Plugins/Samples/Basic/Plugin.c Sun Mar 17 09:08:20 2024 +0100 @@ -20,6 +20,8 @@ **/ +#define PLUGIN_NAME "sample" + #include #include @@ -578,9 +580,9 @@ /* Declare several properties of the plugin */ - OrthancPluginSetRootUri(context, "/plugin/hello"); - OrthancPluginSetDescription(context, "This is the description of the sample plugin that can be seen in Orthanc Explorer."); - OrthancPluginExtendOrthancExplorer(context, "alert('Hello Orthanc! From sample plugin with love.');"); + OrthancPluginSetRootUri2(context, PLUGIN_NAME, "/plugin/hello"); + OrthancPluginSetDescription2(context, PLUGIN_NAME, "This is the description of the sample plugin that can be seen in Orthanc Explorer."); + OrthancPluginExtendOrthancExplorer2(context, PLUGIN_NAME, "alert('Hello Orthanc! From sample plugin with love.');"); customError = OrthancPluginRegisterErrorCode(context, 4, 402, "Hello world"); @@ -602,7 +604,7 @@ ORTHANC_PLUGINS_API const char* OrthancPluginGetName() { - return "sample"; + return PLUGIN_NAME; }