1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 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)
{
|