diff OrthancServer/Sources/ServerContext.h @ 5080:d7274e43ea7c attach-custom-data

allow plugins to store a customData in the Attachments table to e.g. store custom paths without requiring an external DB
author Alain Mazy <am@osimis.io>
date Thu, 08 Sep 2022 17:42:08 +0200
parents d4e5ca0c9307
children 8279eaab0d1d
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.h	Wed Aug 31 10:36:38 2022 +0200
+++ b/OrthancServer/Sources/ServerContext.h	Thu Sep 08 17:42:08 2022 +0200
@@ -268,7 +268,8 @@
 
     // This method must only be called from "ServerIndex"!
     void RemoveFile(const std::string& fileUuid,
-                    FileContentType type);
+                    FileContentType type,
+                    const std::string& customData);
 
     // This DicomModification object is intended to be used as a
     // "rules engine" when de-identifying logs for C-Find, C-Get, and
@@ -325,6 +326,7 @@
 
     bool AddAttachment(int64_t& newRevision,
                        const std::string& resourceId,
+                       ResourceType resourceType,
                        FileContentType attachmentType,
                        const void* data,
                        size_t size,
@@ -346,6 +348,7 @@
                           FileContentType content);
 
     void ChangeAttachmentCompression(const std::string& resourceId,
+                                     ResourceType resourceType,
                                      FileContentType attachmentType,
                                      CompressionType compression);