diff Resources/OrthancCPlugin-1.5.7.patch @ 0:7ed502b17b8f

initial commit
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 26 Mar 2020 18:47:01 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Resources/OrthancCPlugin-1.5.7.patch	Thu Mar 26 18:47:01 2020 +0100
@@ -0,0 +1,59 @@
+--- 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)
+   {