diff OrthancServer/Sources/ServerIndex.h @ 4627:f7d5372b59b3 db-changes

handling revisions of attachments
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 20 Apr 2021 15:11:59 +0200
parents 4a0bf1019335
children 66109d24d26e
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.h	Mon Apr 19 10:28:43 2021 +0200
+++ b/OrthancServer/Sources/ServerIndex.h	Tue Apr 20 15:11:59 2021 +0200
@@ -97,7 +97,10 @@
                       bool hasPixelDataOffset,
                       uint64_t pixelDataOffset);
 
-    StoreStatus AddAttachment(const FileInfo& attachment,
-                              const std::string& publicId);
+    StoreStatus AddAttachment(int64_t& newRevision /*out*/,
+                              const FileInfo& attachment,
+                              const std::string& publicId,
+                              bool hasOldRevision,
+                              int64_t oldRevision);
   };
 }