annotate Resources/OrthancCPlugin-1.10.0.patch @ 142:6288b8132659

replaced "int" by "int32_t" in the SDK to prevent any ABI issue
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 21 Sep 2023 18:18:51 +0200
parents
children d63c58d650ff
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
142
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 --- OrthancCPlugin.h.orig 2023-09-21 18:02:41.830746493 +0200
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 +++ OrthancCPlugin.h 2023-09-21 18:04:07.977591228 +0200
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 @@ -1829,15 +1829,16 @@
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 * @see OrthancPluginCheckVersion
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 * @ingroup Callbacks
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 **/
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 - ORTHANC_PLUGIN_INLINE int OrthancPluginCheckVersionAdvanced(
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 + ORTHANC_PLUGIN_INLINE int32_t OrthancPluginCheckVersionAdvanced(
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 OrthancPluginContext* context,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 - int expectedMajor,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 - int expectedMinor,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 - int expectedRevision)
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 + int32_t expectedMajor,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 + int32_t expectedMinor,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 + int32_t expectedRevision)
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 {
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 - int major, minor, revision;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 + int32_t major, minor, revision;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 - if (sizeof(int32_t) != sizeof(OrthancPluginErrorCode) ||
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 + if (sizeof(int) != sizeof(int32_t) || /* Ensure binary compatibility with Orthanc SDK <= 1.12.1 */
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 + sizeof(int32_t) != sizeof(OrthancPluginErrorCode) ||
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 sizeof(int32_t) != sizeof(OrthancPluginHttpMethod) ||
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 sizeof(int32_t) != sizeof(_OrthancPluginService) ||
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 sizeof(int32_t) != sizeof(_OrthancPluginProperty) ||
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 @@ -1935,7 +1936,7 @@
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27 * @see OrthancPluginCheckVersionAdvanced
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 * @ingroup Callbacks
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 **/
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 - ORTHANC_PLUGIN_INLINE int OrthancPluginCheckVersion(
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 + ORTHANC_PLUGIN_INLINE int32_t OrthancPluginCheckVersion(
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 OrthancPluginContext* context)
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 {
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 return OrthancPluginCheckVersionAdvanced(
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35 @@ -3077,7 +3078,7 @@
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 * @return 1 if the metadata is present, 0 if it is absent, -1 in case of error.
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 * @ingroup DicomInstance
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 **/
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 - ORTHANC_PLUGIN_INLINE int OrthancPluginHasInstanceMetadata(
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 + ORTHANC_PLUGIN_INLINE int32_t OrthancPluginHasInstanceMetadata(
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41 OrthancPluginContext* context,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42 const OrthancPluginDicomInstance* instance,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 const char* metadata)
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44 @@ -3856,13 +3857,13 @@
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 OrthancPluginContext* context,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46 OrthancPluginRestOutput* output,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 uint16_t status,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
48 - const char* body,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49 + const void* body,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50 uint32_t bodySize)
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
51 {
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
52 _OrthancPluginSendHttpStatus params;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
53 params.output = output;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
54 params.status = status;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
55 - params.body = body;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
56 + params.body = reinterpret_cast<const char*>(body);
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
57 params.bodySize = bodySize;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
58 context->InvokeService(context, _OrthancPluginService_SendHttpStatus, &params);
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59 }
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
60 @@ -6760,7 +6761,7 @@
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
61 {
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
62 char** resultId;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
63 OrthancPluginJob *job;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
64 - int priority;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
65 + int32_t priority;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
66 } _OrthancPluginSubmitJob;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
67
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
68 /**
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
69 @@ -6779,7 +6780,7 @@
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
70 ORTHANC_PLUGIN_INLINE char *OrthancPluginSubmitJob(
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
71 OrthancPluginContext *context,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
72 OrthancPluginJob *job,
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
73 - int priority)
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
74 + int32_t priority)
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
75 {
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
76 char* resultId = NULL;
6288b8132659 replaced "int" by "int32_t" in the SDK to prevent any ABI issue
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
77