diff OrthancServer/Sources/ServerContext.h @ 5850:1980354c8113 find-refactoring

add level of interest to StatelessDatabaseOperations::LookupAttachment()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 29 Oct 2024 15:03:32 +0000
parents 58c549b881ae
children
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.h	Tue Oct 29 14:05:59 2024 +0000
+++ b/OrthancServer/Sources/ServerContext.h	Tue Oct 29 15:03:32 2024 +0000
@@ -356,10 +356,12 @@
                                   bool isReconstruct = false);
 
     void AnswerAttachment(RestApiOutput& output,
+                          ResourceType level,
                           const std::string& resourceId,
                           FileContentType content);
 
-    void ChangeAttachmentCompression(const std::string& resourceId,
+    void ChangeAttachmentCompression(ResourceType level,
+                                     const std::string& resourceId,
                                      FileContentType attachmentType,
                                      CompressionType compression);
 
@@ -393,6 +395,7 @@
     void ReadAttachment(std::string& result,
                         int64_t& revision,
                         std::string& attachmentId,
+                        ResourceType level,
                         const std::string& instancePublicId,
                         FileContentType content,
                         bool uncompressIfNeeded,