# HG changeset patch # User Sebastien Jodogne # Date 1763554867 -3600 # Node ID 573f4394a8469bbc9c4ee258d5d17bd217cb17b2 # Parent 0b90d7ff07213ed2159ff0203776841b00125d1d fix incorrect deprecation diff -r 0b90d7ff0721 -r 573f4394a846 OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json --- a/OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json Wed Nov 19 13:11:41 2025 +0100 +++ b/OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json Wed Nov 19 13:21:07 2025 +0100 @@ -5504,11 +5504,11 @@ "documentation": { "args": { "queueId": "A unique identifier identifying both the plugin and the queue.", - "valueId": "The opaque identifier for the value obtained from OrthancPluginReserveQueueValue()." + "valueId": "The opaque identifier for the value provided by OrthancPluginReserveQueueValue()." }, "description": [], "return": "0 if success, other value if error.", - "summary": "Acknowledge that a queue value has been properly consumed by the plugin and can be definitely removed from the queue." + "summary": "Acknowledge that a queue value has been properly consumed by the plugin and can be permanently removed from the queue." }, "return_sdk_enumeration": "OrthancPluginErrorCode", "return_sdk_type": "enumeration", diff -r 0b90d7ff0721 -r 573f4394a846 OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h --- a/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h Wed Nov 19 13:11:41 2025 +0100 +++ b/OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h Wed Nov 19 13:21:07 2025 +0100 @@ -1746,15 +1746,19 @@ Enqueue(value.empty() ? NULL : value.c_str(), value.size()); } +#if HAS_ORTHANC_PLUGIN_RESERVE_QUEUE_VALUE == 1 // Use ReserveBack() instead ORTHANC_PLUGIN_DEPRECATED +#endif bool DequeueBack(std::string& value) { return DequeueInternal(value, OrthancPluginQueueOrigin_Back); } +#if HAS_ORTHANC_PLUGIN_RESERVE_QUEUE_VALUE == 1 // Use ReserveFront() instead ORTHANC_PLUGIN_DEPRECATED +#endif bool DequeueFront(std::string& value) { return DequeueInternal(value, OrthancPluginQueueOrigin_Front);