diff OrthancServer/Sources/IServerListener.h @ 4921:309fb4f02704

fix signature of OrthancPluginIncomingCStoreInstanceFilter
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 23 Feb 2022 11:09:43 +0100
parents 6eff25f70121
children 0ea402b4d901
line wrap: on
line diff
--- a/OrthancServer/Sources/IServerListener.h	Wed Feb 23 09:30:53 2022 +0100
+++ b/OrthancServer/Sources/IServerListener.h	Wed Feb 23 11:09:43 2022 +0100
@@ -45,8 +45,14 @@
     virtual bool FilterIncomingInstance(const DicomInstanceToStore& instance,
                                         const Json::Value& simplified) = 0;
 
-    virtual uint16_t FilterIncomingCStoreInstance(const DicomInstanceToStore& instance,
-                                                  const Json::Value& simplified) = 0;
-
+    /**
+     * Returns "true" iff some DICOM instance received by the DICOM
+     * SCP is to be accepted. If the instance is discarded,
+     * "dimseStatus" must contain the DIMSE status that is sent back
+     * to the DICOM SCU.
+     **/
+    virtual bool FilterIncomingCStoreInstance(uint16_t& dimseStatus,
+                                              const DicomInstanceToStore& instance,
+                                              const Json::Value& simplified) = 0;
   };
 }