changeset 3797:d73ce7c537c3

fix signature of OrthancPluginRegisterStorageCommitmentScpCallback()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Apr 2020 08:33:32 +0200
parents daa1bc6700bf
children 320a2d224902
files NEWS Plugins/Include/orthanc/OrthancCPlugin.h
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Wed Apr 01 08:07:46 2020 +0200
+++ b/NEWS	Wed Apr 01 08:33:32 2020 +0200
@@ -7,6 +7,7 @@
 
 * Source code repository moved from BitBucket to self-hosted server
 * Fix lookup form in Orthanc Explorer (wildcards not allowed in StudyDate)
+* Fix signature of "OrthancPluginRegisterStorageCommitmentScpCallback()" in plugins SDK
 
 
 Version 1.6.0 (2020-03-18)
--- a/Plugins/Include/orthanc/OrthancCPlugin.h	Wed Apr 01 08:07:46 2020 +0200
+++ b/Plugins/Include/orthanc/OrthancCPlugin.h	Wed Apr 01 08:33:32 2020 +0200
@@ -7398,7 +7398,7 @@
    * @return 0 if success, other value if error.
    * @ingroup DicomCallbacks
    **/
-  ORTHANC_PLUGIN_INLINE void OrthancPluginRegisterStorageCommitmentScpCallback(
+  ORTHANC_PLUGIN_INLINE OrthancPluginErrorCode OrthancPluginRegisterStorageCommitmentScpCallback(
     OrthancPluginContext*                     context,
     OrthancPluginStorageCommitmentFactory     factory,
     OrthancPluginStorageCommitmentDestructor  destructor,
@@ -7408,7 +7408,7 @@
     params.factory = factory;
     params.destructor = destructor;
     params.lookup = lookup;
-    context->InvokeService(context, _OrthancPluginService_RegisterStorageCommitmentScpCallback, &params);
+    return context->InvokeService(context, _OrthancPluginService_RegisterStorageCommitmentScpCallback, &params);
   }
   
 #ifdef  __cplusplus