diff Framework/Plugins/IndexBackend.h @ 577:991b9b285e1a attach-custom-data tip

fix custom-data handling
author Alain Mazy <am@orthanc.team>
date Wed, 02 Oct 2024 09:40:20 +0200
parents f18e46d7dbf8
children
line wrap: on
line diff
--- a/Framework/Plugins/IndexBackend.h	Tue Oct 01 16:02:48 2024 +0200
+++ b/Framework/Plugins/IndexBackend.h	Wed Oct 02 09:40:20 2024 +0200
@@ -91,14 +91,21 @@
                                const OrthancPluginAttachment& attachment,
                                int64_t revision) ORTHANC_OVERRIDE;
 
-#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 0)
+#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 6)
+    // New in Orthanc 1.12.6
+    virtual void AddAttachment(Orthanc::DatabasePluginMessages::TransactionResponse& response,
+                               DatabaseManager& manager,
+                               const Orthanc::DatabasePluginMessages::AddAttachment_Request& request) ORTHANC_OVERRIDE;
+#endif
 
-    virtual void AddAttachment2(DatabaseManager& manager,
-                               int64_t id,
-                               const OrthancPluginAttachment2& attachment,
-                               int64_t revision) ORTHANC_OVERRIDE;
+// #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 12, 6)
 
-#endif
+//     virtual void AddAttachment2(DatabaseManager& manager,
+//                                int64_t id,
+//                                const OrthancPluginAttachment2& attachment,
+//                                int64_t revision) ORTHANC_OVERRIDE;
+
+// #endif
 
     virtual void AttachChild(DatabaseManager& manager,
                              int64_t parent,