Mercurial > hg > orthanc
changeset 6453:573f4394a846 queues-timeout
fix incorrect deprecation
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Wed, 19 Nov 2025 13:21:07 +0100 |
| parents | 0b90d7ff0721 |
| children | 12265dd65c54 |
| files | OrthancServer/Plugins/Include/orthanc/OrthancPluginCodeModel.json OrthancServer/Plugins/Samples/Common/OrthancPluginCppWrapper.h |
| diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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",
--- 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);
