Mercurial > hg > orthanc-databases
diff Framework/Plugins/DatabaseBackendAdapterV2.cpp @ 271:6b18d3fbee82
backward compatibility with Orthanc SDK 0.9.5
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Apr 2021 10:41:29 +0200 |
parents | 34e2b93a7ac1 |
children | 16aac0287485 cd9521e04249 |
line wrap: on
line diff
--- a/Framework/Plugins/DatabaseBackendAdapterV2.cpp Wed Apr 21 17:56:43 2021 +0200 +++ b/Framework/Plugins/DatabaseBackendAdapterV2.cpp Thu Apr 22 10:41:29 2021 +0200 @@ -1029,6 +1029,8 @@ } +#if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) +# if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 4, 0) static OrthancPluginErrorCode LookupIdentifierRange(OrthancPluginDatabaseContext* context, void* payload, OrthancPluginResourceType resourceType, @@ -1059,6 +1061,8 @@ } ORTHANC_PLUGINS_DATABASE_CATCH; } +# endif +#endif static OrthancPluginErrorCode LookupMetadata(OrthancPluginDatabaseContext* context, @@ -1465,6 +1469,8 @@ #endif +#if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) +# if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 2) // New primitive since Orthanc 1.5.2 static OrthancPluginErrorCode GetChildrenMetadata(OrthancPluginDatabaseContext* context, void* payload, @@ -1494,8 +1500,12 @@ } ORTHANC_PLUGINS_DATABASE_CATCH; } +# endif +#endif +#if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) +# if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 2) // New primitive since Orthanc 1.5.2 static OrthancPluginErrorCode GetLastChangeIndex(int64_t* result, void* payload) @@ -1510,8 +1520,12 @@ } ORTHANC_PLUGINS_DATABASE_CATCH; } +# endif +#endif +#if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) +# if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 5, 2) // New primitive since Orthanc 1.5.2 static OrthancPluginErrorCode TagMostRecentPatient(void* payload, int64_t patientId) @@ -1526,6 +1540,8 @@ } ORTHANC_PLUGINS_DATABASE_CATCH; } +# endif +#endif #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE) // Macro introduced in 1.3.1