diff Framework/Plugins/IDatabaseBackend.h @ 261:34e2b93a7ac1

implementing interface for revisions in attachments
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Apr 2021 18:47:50 +0200
parents 793bbbe11287
children 16aac0287485 cd9521e04249
line wrap: on
line diff
--- a/Framework/Plugins/IDatabaseBackend.h	Mon Apr 19 16:45:15 2021 +0200
+++ b/Framework/Plugins/IDatabaseBackend.h	Mon Apr 19 18:47:50 2021 +0200
@@ -52,7 +52,8 @@
 
     virtual void AddAttachment(DatabaseManager& manager,
                                int64_t id,
-                               const OrthancPluginAttachment& attachment) = 0;
+                               const OrthancPluginAttachment& attachment,
+                               int64_t revision) = 0;
 
     virtual void AttachChild(DatabaseManager& manager,
                              int64_t parent,
@@ -166,6 +167,7 @@
     
     /* Use GetOutput().AnswerAttachment() */
     virtual bool LookupAttachment(IDatabaseBackendOutput& output,
+                                  int64_t& revision /*out*/,
                                   DatabaseManager& manager,
                                   int64_t id,
                                   int32_t contentType) = 0;