changeset 3206:d9e3d3340918

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 06 Feb 2019 18:04:28 +0100
parents 6c86d4d407da
children 4246ce5c2aa5
files Plugins/Include/orthanc/OrthancCPlugin.h Plugins/Samples/Basic/Plugin.c
diffstat 2 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Include/orthanc/OrthancCPlugin.h	Wed Feb 06 18:01:43 2019 +0100
+++ b/Plugins/Include/orthanc/OrthancCPlugin.h	Wed Feb 06 18:04:28 2019 +0100
@@ -6645,7 +6645,7 @@
     OrthancPluginDicomWebBinaryMode  mode,
     const char*                      bulkDataUri);
     
-  typedef OrthancPluginErrorCode (*OrthancPluginDicomWebBinaryCallback) (
+  typedef void (*OrthancPluginDicomWebBinaryCallback) (
     OrthancPluginDicomWebNode*          node,
     OrthancPluginDicomWebSetBinaryNode  setter,
     uint32_t                            levelDepth,
--- a/Plugins/Samples/Basic/Plugin.c	Wed Feb 06 18:01:43 2019 +0100
+++ b/Plugins/Samples/Basic/Plugin.c	Wed Feb 06 18:04:28 2019 +0100
@@ -38,8 +38,11 @@
 
   if (request->method != OrthancPluginHttpMethod_Get)
   {
-    // NB: Calling "OrthancPluginSendMethodNotAllowed(context, output, "GET");"
-    // is preferable. This is a sample to demonstrate "OrthancPluginSetHttpErrorDetails()".
+    /**
+     * NB: Calling "OrthancPluginSendMethodNotAllowed(context, output,
+     * "GET");" is preferable. This is a sample to demonstrate
+     * "OrthancPluginSetHttpErrorDetails()". 
+     **/
     OrthancPluginSetHttpErrorDetails(context, output, "This Callback1() can only be used by a GET call", 1 /* log */);
     return OrthancPluginErrorCode_ParameterOutOfRange;
   }
@@ -263,7 +266,7 @@
 }
 
 
-ORTHANC_PLUGINS_API OrthancPluginErrorCode DicomWebBinaryCallback(
+ORTHANC_PLUGINS_API void DicomWebBinaryCallback(
   OrthancPluginDicomWebNode*          node,
   OrthancPluginDicomWebSetBinaryNode  setter,
   uint32_t                            levelDepth,