Mercurial > hg > orthanc-python
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7ed502b17b8f |
---|---|
1 --- OrthancCPlugin.h.orig 2020-03-26 16:23:11.963320239 +0100 | |
2 +++ OrthancCPlugin.h 2020-03-26 16:24:45.403002064 +0100 | |
3 @@ -909,14 +909,14 @@ | |
4 **/ | |
5 typedef enum | |
6 { | |
7 - OrthancPluginMetricsType_Default, /*!< Default metrics */ | |
8 + OrthancPluginMetricsType_Default = 0, /*!< Default metrics */ | |
9 | |
10 /** | |
11 * This metrics represents a time duration. Orthanc will keep the | |
12 * maximum value of the metrics over a sliding window of ten | |
13 * seconds, which is useful if the metrics is sampled frequently. | |
14 **/ | |
15 - OrthancPluginMetricsType_Timer | |
16 + OrthancPluginMetricsType_Timer = 1 | |
17 } OrthancPluginMetricsType; | |
18 | |
19 | |
20 @@ -926,9 +926,9 @@ | |
21 **/ | |
22 typedef enum | |
23 { | |
24 - OrthancPluginDicomWebBinaryMode_Ignore, /*!< Don't include binary tags */ | |
25 - OrthancPluginDicomWebBinaryMode_InlineBinary, /*!< Inline encoding using Base64 */ | |
26 - OrthancPluginDicomWebBinaryMode_BulkDataUri /*!< Use a bulk data URI field */ | |
27 + OrthancPluginDicomWebBinaryMode_Ignore = 0, /*!< Don't include binary tags */ | |
28 + OrthancPluginDicomWebBinaryMode_InlineBinary = 1, /*!< Inline encoding using Base64 */ | |
29 + OrthancPluginDicomWebBinaryMode_BulkDataUri = 2 /*!< Use a bulk data URI field */ | |
30 } OrthancPluginDicomWebBinaryMode; | |
31 | |
32 | |
33 @@ -1915,7 +1915,7 @@ | |
34 typedef struct | |
35 { | |
36 OrthancPluginRestOutput* output; | |
37 - const char* answer; | |
38 + const void* answer; | |
39 uint32_t answerSize; | |
40 const char* mimeType; | |
41 } _OrthancPluginAnswerBuffer; | |
42 @@ -1935,7 +1935,7 @@ | |
43 ORTHANC_PLUGIN_INLINE void OrthancPluginAnswerBuffer( | |
44 OrthancPluginContext* context, | |
45 OrthancPluginRestOutput* output, | |
46 - const char* answer, | |
47 + const void* answer, | |
48 uint32_t answerSize, | |
49 const char* mimeType) | |
50 { | |
51 @@ -2732,7 +2732,7 @@ | |
52 * @return The pointer to the DICOM data, NULL in case of error. | |
53 * @ingroup Callbacks | |
54 **/ | |
55 - ORTHANC_PLUGIN_INLINE const char* OrthancPluginGetInstanceData( | |
56 + ORTHANC_PLUGIN_INLINE const void* OrthancPluginGetInstanceData( | |
57 OrthancPluginContext* context, | |
58 OrthancPluginDicomInstance* instance) | |
59 { |