changeset 6013:91394d783aef attach-custom-data

reformating
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 21 Feb 2025 15:12:47 +0100
parents 384f46a99abf
children 8d9bc0217a38
files OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h
diffstat 1 files changed, 18 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h	Mon Feb 10 16:21:26 2025 +0100
+++ b/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h	Fri Feb 21 15:12:47 2025 +0100
@@ -492,7 +492,7 @@
     _OrthancPluginService_RegisterIncomingCStoreInstanceFilter = 1017,  /* New in Orthanc 1.10.0 */
     _OrthancPluginService_RegisterReceivedInstanceCallback = 1018,  /* New in Orthanc 1.10.0 */
     _OrthancPluginService_RegisterWebDavCollection = 1019,     /* New in Orthanc 1.10.1 */
-    _OrthancPluginService_RegisterStorageArea3 = 1020,         /* New in Orthanc 1.12.0 */
+    _OrthancPluginService_RegisterStorageArea3 = 1020,         /* New in Orthanc 1.12.7 */
 
     /* Sending answers to REST calls */
     _OrthancPluginService_AnswerBuffer = 2000,
@@ -1454,7 +1454,7 @@
    * @param instance The DICOM instance being stored.
    * @param content The content of the file (might be compressed data, hence the need for the DICOM instance arg to access tags).
    * @param size The size of the file.
-   * @param type The content type corresponding to this file. 
+   * @param type The content type corresponding to this file.
    * @return 0 if success, other value if error.
    * @ingroup Callbacks
    **/
@@ -1478,7 +1478,7 @@
    * @param resourceType The resource Type the file is attached to.
    * @param content The content of the file (might be compressed data, hence the need for the DICOM instance arg to access tags).
    * @param size The size of the file.
-   * @param type The content type corresponding to this file. 
+   * @param type The content type corresponding to this file.
    * @return 0 if success, other value if error.
    * @ingroup Callbacks
    **/
@@ -1504,7 +1504,7 @@
    * plugin using OrthancPluginCreateMemoryBuffer64(). The core of Orthanc will free it.
    * @param uuid The UUID of the file of interest.
    * @param customData The custom data of the file to be removed.
-   * @param type The content type corresponding to this file. 
+   * @param type The content type corresponding to this file.
    * @ingroup Callbacks
    **/
   typedef OrthancPluginErrorCode (*OrthancPluginStorageReadWhole2) (
@@ -1527,7 +1527,7 @@
    * of interest corresponds to the size of this buffer.
    * @param uuid The UUID of the file of interest.
    * @param customData The custom data of the file to be removed.
-   * @param type The content type corresponding to this file. 
+   * @param type The content type corresponding to this file.
    * @param rangeStart Start position of the requested range in the file.
    * @return 0 if success, other value if error.
    * @ingroup Callbacks
@@ -1548,7 +1548,7 @@
    *
    * @param uuid The UUID of the file to be removed.
    * @param customData The custom data of the file to be removed.
-   * @param type The content type corresponding to this file. 
+   * @param type The content type corresponding to this file.
    * @return 0 if success, other value if error.
    * @ingroup Callbacks
    **/
@@ -9482,11 +9482,11 @@
 
   typedef struct
   {
-    OrthancPluginStorageCreateInstance       createInstance;
-    OrthancPluginStorageCreateAttachment     createAttachment;
-    OrthancPluginStorageReadWhole2    readWhole;
-    OrthancPluginStorageReadRange2    readRange;
-    OrthancPluginStorageRemove2       remove;
+    OrthancPluginStorageCreateInstance    createInstance;
+    OrthancPluginStorageCreateAttachment  createAttachment;
+    OrthancPluginStorageReadWhole2        readWhole;
+    OrthancPluginStorageReadRange2        readRange;
+    OrthancPluginStorageRemove2           remove;
   } _OrthancPluginRegisterStorageArea3;
 
   /**
@@ -9496,7 +9496,7 @@
    * built-in way Orthanc stores its files on the filesystem. This
    * function must be called during the initialization of the plugin,
    * i.e. inside the OrthancPluginInitialize() public function.
-   * 
+   *
    * @param context The Orthanc plugin context, as received by OrthancPluginInitialize().
    * @param create The callback function to store a file on the custom storage area.
    * @param readWhole The callback function to read a whole file from the custom storage area.
@@ -9506,16 +9506,14 @@
    * @ingroup Callbacks
    **/
   ORTHANC_PLUGIN_INLINE void OrthancPluginRegisterStorageArea3(
-    OrthancPluginContext*             context,
-    // OrthancPluginStorageGetCustomData getCustomData,
-    OrthancPluginStorageCreateInstance         createInstance,
-    OrthancPluginStorageCreateAttachment       createAttachement,
-    OrthancPluginStorageReadWhole2    readWhole,
-    OrthancPluginStorageReadRange2    readRange,
-    OrthancPluginStorageRemove2       remove)
+    OrthancPluginContext*                 context,
+    OrthancPluginStorageCreateInstance    createInstance,
+    OrthancPluginStorageCreateAttachment  createAttachement,
+    OrthancPluginStorageReadWhole2        readWhole,
+    OrthancPluginStorageReadRange2        readRange,
+    OrthancPluginStorageRemove2           remove)
   {
     _OrthancPluginRegisterStorageArea3 params;
-    // params.getCustomData = getCustomData;
     params.createAttachment = createAttachement;
     params.createInstance = createInstance;
     params.readWhole = readWhole;