# HG changeset patch # User Sebastien Jodogne # Date 1630063677 -7200 # Node ID fe5f86967c77c0c52455da08f363f8a5cf36ef6b # Parent 2464bacb730bae24dbbe54fb003f814285f8c374 fix lsb build diff -r 2464bacb730b -r fe5f86967c77 Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Fri Aug 27 13:09:45 2021 +0200 +++ b/Plugin/Plugin.cpp Fri Aug 27 13:27:57 2021 +0200 @@ -63,9 +63,9 @@ -static void TciaHttpProxy(OrthancPluginRestOutput* output, - const char* url, - const OrthancPluginHttpRequest* request) +void TciaHttpProxy(OrthancPluginRestOutput* output, + const char* url, + const OrthancPluginHttpRequest* request) { if (request->method != OrthancPluginHttpMethod_Get) { @@ -138,9 +138,9 @@ } -static void TciaImport(OrthancPluginRestOutput* output, - const char* url, - const OrthancPluginHttpRequest* request) +void TciaImport(OrthancPluginRestOutput* output, + const char* url, + const OrthancPluginHttpRequest* request) { if (request->method != OrthancPluginHttpMethod_Post) { @@ -189,9 +189,9 @@ } -static void ServeHtml(OrthancPluginRestOutput* output, - const char* url, - const OrthancPluginHttpRequest* request) +void ServeHtml(OrthancPluginRestOutput* output, + const char* url, + const OrthancPluginHttpRequest* request) { if (request->method != OrthancPluginHttpMethod_Get) { @@ -204,7 +204,7 @@ #if ORTHANC_STANDALONE == 1 Orthanc::EmbeddedResources::GetFileResource(s, Orthanc::EmbeddedResources::TCIA_HTML); #else - Orthanc::SystemToolbox::ReadFile(s, std::string(PLUGIN_SOURCE_DIR) + "/WebApplication/index.html"); + Orthanc::SystemToolbox::ReadFile(s, std::string(TCIA_SOURCE_DIR) + "/WebApplication/index.html"); #endif OrthancPluginAnswerBuffer(OrthancPlugins::GetGlobalContext(), output, @@ -213,9 +213,9 @@ } -static void ServeJavaScript(OrthancPluginRestOutput* output, - const char* url, - const OrthancPluginHttpRequest* request) +void ServeJavaScript(OrthancPluginRestOutput* output, + const char* url, + const OrthancPluginHttpRequest* request) { if (request->method != OrthancPluginHttpMethod_Get) { @@ -228,7 +228,7 @@ #if ORTHANC_STANDALONE == 1 Orthanc::EmbeddedResources::GetFileResource(s, Orthanc::EmbeddedResources::TCIA_JS); #else - Orthanc::SystemToolbox::ReadFile(s, std::string(PLUGIN_SOURCE_DIR) + "/WebApplication/app.js"); + Orthanc::SystemToolbox::ReadFile(s, std::string(TCIA_SOURCE_DIR) + "/WebApplication/app.js"); #endif OrthancPluginAnswerBuffer(OrthancPlugins::GetGlobalContext(), output, @@ -237,9 +237,9 @@ } -static void ClearCache(OrthancPluginRestOutput* output, - const char* url, - const OrthancPluginHttpRequest* request) +void ClearCache(OrthancPluginRestOutput* output, + const char* url, + const OrthancPluginHttpRequest* request) { if (request->method != OrthancPluginHttpMethod_Post) { @@ -256,9 +256,9 @@ template -static void ServeEmbeddedResource(OrthancPluginRestOutput* output, - const char* url, - const OrthancPluginHttpRequest* request) +void ServeEmbeddedResource(OrthancPluginRestOutput* output, + const char* url, + const OrthancPluginHttpRequest* request) { if (request->method != OrthancPluginHttpMethod_Get) {