Mercurial > hg > orthanc
changeset 6103:91527f33f3bf attach-custom-data
cleanup
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Fri, 09 May 2025 09:16:09 +0200 |
parents | b1764e7248e0 |
children | 49674012ab49 |
files | OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h |
diffstat | 1 files changed, 4 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h Wed May 07 19:27:06 2025 +0200 +++ b/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h Fri May 09 09:16:09 2025 +0200 @@ -9780,12 +9780,11 @@ typedef struct { const void* buffer; /* in */ - uint64_t bufferSize; /* in, can be only the beginning of a DICOM file (until the pixel data) */ - // TODO_ATTACH_CUSTOM_DATA uint64_t pixelDataOffset; /* in, zero = undefined */ - OrthancPluginAttachment2* attachmentInfo; /* in, uuid may not be defined */ + uint64_t bufferSize; /* in */ + OrthancPluginAttachment2* attachmentInfo; /* in, note: uuid may not be defined */ OrthancPluginResourceType attachToResourceType; /* in */ - const char* attachToResourceId; /* in */ - OrthancPluginMemoryBuffer* createdResourceId; /* out */ + const char* attachToResourceId; /* in, can be null in case the attachment is a new instance */ + OrthancPluginMemoryBuffer* createdResourceId; /* out, in case the attachment is actually a new instance */ OrthancPluginMemoryBuffer* attachmentUuid; /* out */ OrthancPluginStoreStatus* storeStatus; /* out */ } _OrthancPluginAdoptAttachment; @@ -9800,7 +9799,6 @@ OrthancPluginContext* context, const void* buffer, uint64_t bufferSize, - // TODO_ATTACH_CUSTOM_DATA uint64_t pixelDataOffset, OrthancPluginAttachment2* attachmentInfo, OrthancPluginResourceType attachToResourceType, const char* attachToResourceId, @@ -9812,7 +9810,6 @@ _OrthancPluginAdoptAttachment params; params.buffer = buffer; params.bufferSize = bufferSize; - // TODO_ATTACH_CUSTOM_DATA ? params.pixelDataOffset = pixelDataOffset; params.attachmentInfo = attachmentInfo; params.attachToResourceType = attachToResourceType; params.attachToResourceId = attachToResourceId;