Mercurial > hg > orthanc-python
view Resources/OrthancCPlugin-1.5.7.patch @ 62:d82eef8c98fc
todo
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 28 May 2021 10:53:18 +0200 |
parents | 7ed502b17b8f |
children |
line wrap: on
line source
--- OrthancCPlugin.h.orig 2020-03-26 16:23:11.963320239 +0100 +++ OrthancCPlugin.h 2020-03-26 16:24:45.403002064 +0100 @@ -909,14 +909,14 @@ **/ typedef enum { - OrthancPluginMetricsType_Default, /*!< Default metrics */ + OrthancPluginMetricsType_Default = 0, /*!< Default metrics */ /** * This metrics represents a time duration. Orthanc will keep the * maximum value of the metrics over a sliding window of ten * seconds, which is useful if the metrics is sampled frequently. **/ - OrthancPluginMetricsType_Timer + OrthancPluginMetricsType_Timer = 1 } OrthancPluginMetricsType; @@ -926,9 +926,9 @@ **/ typedef enum { - OrthancPluginDicomWebBinaryMode_Ignore, /*!< Don't include binary tags */ - OrthancPluginDicomWebBinaryMode_InlineBinary, /*!< Inline encoding using Base64 */ - OrthancPluginDicomWebBinaryMode_BulkDataUri /*!< Use a bulk data URI field */ + OrthancPluginDicomWebBinaryMode_Ignore = 0, /*!< Don't include binary tags */ + OrthancPluginDicomWebBinaryMode_InlineBinary = 1, /*!< Inline encoding using Base64 */ + OrthancPluginDicomWebBinaryMode_BulkDataUri = 2 /*!< Use a bulk data URI field */ } OrthancPluginDicomWebBinaryMode; @@ -1915,7 +1915,7 @@ typedef struct { OrthancPluginRestOutput* output; - const char* answer; + const void* answer; uint32_t answerSize; const char* mimeType; } _OrthancPluginAnswerBuffer; @@ -1935,7 +1935,7 @@ ORTHANC_PLUGIN_INLINE void OrthancPluginAnswerBuffer( OrthancPluginContext* context, OrthancPluginRestOutput* output, - const char* answer, + const void* answer, uint32_t answerSize, const char* mimeType) { @@ -2732,7 +2732,7 @@ * @return The pointer to the DICOM data, NULL in case of error. * @ingroup Callbacks **/ - ORTHANC_PLUGIN_INLINE const char* OrthancPluginGetInstanceData( + ORTHANC_PLUGIN_INLINE const void* OrthancPluginGetInstanceData( OrthancPluginContext* context, OrthancPluginDicomInstance* instance) {