diff OrthancServer/Sources/Database/StatelessDatabaseOperations.h @ 5553:28cc06e4859a large-queries

Added ExtendedApiV1: /changes
author Alain Mazy <am@orthanc.team>
date Thu, 11 Apr 2024 19:02:20 +0200
parents dd430a1b21fe
children 3765085693e5
line wrap: on
line diff
--- a/OrthancServer/Sources/Database/StatelessDatabaseOperations.h	Fri Mar 29 23:23:01 2024 +0100
+++ b/OrthancServer/Sources/Database/StatelessDatabaseOperations.h	Thu Apr 11 19:02:20 2024 +0200
@@ -245,6 +245,16 @@
         transaction_.GetChanges(target, done, since, limit);
       }
 
+      void GetChanges2(std::list<ServerIndexChange>& target /*out*/,
+                       bool& done /*out*/,
+                       int64_t since,
+                       int64_t to,
+                       uint32_t limit,
+                       ChangeType filterType)
+      {
+        transaction_.GetChanges2(target, done, since, to, limit, filterType);
+      }
+
       void GetChildrenInternalId(std::list<int64_t>& target,
                                  int64_t id)
       {
@@ -628,8 +638,16 @@
                     int64_t since,
                     uint32_t limit);
 
+    void GetChanges2(Json::Value& target,
+                     int64_t since,
+                     int64_t to,
+                     uint32_t limit,
+                     ChangeType filterType);
+
     void GetLastChange(Json::Value& target);
 
+    bool HasExtendedApiV1();
+
     void GetExportedResources(Json::Value& target,
                               int64_t since,
                               uint32_t limit);