comparison Framework/Plugins/StorageBackend.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 5931c2ff22ca
children b988cb30534f
comparison
equal deleted inserted replaced
270:5931c2ff22ca 271:6b18d3fbee82
313 } 313 }
314 ORTHANC_PLUGINS_DATABASE_CATCH; 314 ORTHANC_PLUGINS_DATABASE_CATCH;
315 } 315 }
316 316
317 317
318 #if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 0) 318 #if defined(ORTHANC_PLUGINS_VERSION_IS_ABOVE)
319 # if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 9, 0)
319 static OrthancPluginErrorCode StorageReadWhole(OrthancPluginMemoryBuffer64* target, 320 static OrthancPluginErrorCode StorageReadWhole(OrthancPluginMemoryBuffer64* target,
320 const char* uuid, 321 const char* uuid,
321 OrthancPluginContentType type) 322 OrthancPluginContentType type)
322 { 323 {
323 class Visitor : public StorageBackend::IFileContentVisitor 324 class Visitor : public StorageBackend::IFileContentVisitor
490 return OrthancPluginErrorCode_Success; 491 return OrthancPluginErrorCode_Success;
491 } 492 }
492 } 493 }
493 ORTHANC_PLUGINS_DATABASE_CATCH; 494 ORTHANC_PLUGINS_DATABASE_CATCH;
494 } 495 }
496 # endif
495 #endif 497 #endif
496 498
497 499
498 static OrthancPluginErrorCode StorageRead(void** data, 500 static OrthancPluginErrorCode StorageRead(void** data,
499 int64_t* size, 501 int64_t* size,