# HG changeset patch # User Sebastien Jodogne # Date 1645564734 -3600 # Node ID 189ae9a37e01a5ffdfc98dd05d9e3ddfa6046c7b # Parent 4b10cbf3ccc8a4c8780701d65e658db11f34a360 reorder arguments to put the target as first argument (convention) diff -r 4b10cbf3ccc8 -r 189ae9a37e01 OrthancServer/Plugins/Engine/OrthancPlugins.cpp --- a/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Tue Feb 22 22:14:31 2022 +0100 +++ b/OrthancServer/Plugins/Engine/OrthancPlugins.cpp Tue Feb 22 22:18:54 2022 +0100 @@ -2302,7 +2302,7 @@ { OrthancPluginMemoryBuffer64 buffer; - callbackResult = (*pimpl_->receivedInstanceCallback_) (receivedDicom, receivedDicomSize, &buffer); + callbackResult = (*pimpl_->receivedInstanceCallback_) (&buffer, receivedDicom, receivedDicomSize); modified.Assign(buffer.data, buffer.size, ::free); } diff -r 4b10cbf3ccc8 -r 189ae9a37e01 OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h --- a/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h Tue Feb 22 22:14:31 2022 +0100 +++ b/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h Tue Feb 22 22:18:54 2022 +0100 @@ -7858,10 +7858,9 @@ * @ingroup Callback **/ typedef OrthancPluginReceivedInstanceCallbackResult (*OrthancPluginReceivedInstanceCallback) ( + OrthancPluginMemoryBuffer64* modifiedDicomBuffer, const void* receivedDicomBuffer, - uint64_t receivedDicomBufferSize, - OrthancPluginMemoryBuffer64* modifiedDicomBuffer - ); + uint64_t receivedDicomBufferSize); typedef struct diff -r 4b10cbf3ccc8 -r 189ae9a37e01 OrthancServer/Plugins/Samples/Sanitizer/Plugin.cpp --- a/OrthancServer/Plugins/Samples/Sanitizer/Plugin.cpp Tue Feb 22 22:14:31 2022 +0100 +++ b/OrthancServer/Plugins/Samples/Sanitizer/Plugin.cpp Tue Feb 22 22:18:54 2022 +0100 @@ -33,9 +33,9 @@ -OrthancPluginReceivedInstanceCallbackResult ReceivedInstanceCallback(const void* receivedDicomBuffer, - uint64_t receivedDicomBufferSize, - OrthancPluginMemoryBuffer64* modifiedDicomBuffer) +OrthancPluginReceivedInstanceCallbackResult ReceivedInstanceCallback(OrthancPluginMemoryBuffer64* modifiedDicomBuffer, + const void* receivedDicomBuffer, + uint64_t receivedDicomBufferSize) { Orthanc::ParsedDicomFile dicom(receivedDicomBuffer, receivedDicomBufferSize); std::string institutionName = "My institution";