diff Plugins/Include/orthanc/OrthancCPlugin.h @ 3797:d73ce7c537c3

fix signature of OrthancPluginRegisterStorageCommitmentScpCallback()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 01 Apr 2020 08:33:32 +0200
parents a22717e68d9b
children 9fe1d64a748c
line wrap: on
line diff
--- 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