# HG changeset patch # User Sebastien Jodogne # Date 1697707280 -7200 # Node ID 26c08ff926a3aacd00de07845575d0cc4f32577f # Parent b14ed1ea3a239648a5649596e66a8b816678d881 added warning about auto-generated files diff -r b14ed1ea3a23 -r 26c08ff926a3 CodeGeneration/CppNativeSDK.mustache --- a/CodeGeneration/CppNativeSDK.mustache Thu Oct 19 11:14:45 2023 +0200 +++ b/CodeGeneration/CppNativeSDK.mustache Thu Oct 19 11:21:20 2023 +0200 @@ -22,6 +22,20 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + +#include "JavaBytes.h" +#include "JavaEnvironment.h" +#include "JavaString.h" +#include "OrthancBytes.h" +#include "OrthancString.h" + +#include + +#include + +extern OrthancPluginContext* context_; + {{#functions}} JNIEXPORT {{return.c_type}} JNI_{{c_function}}(JNIEnv* env, jobject sdkObject{{#class_name}}, jlong self{{/class_name}}{{#args}}, {{c_type}} {{name}}{{/args}}) @@ -159,7 +173,7 @@ {{/functions}} -static void JNI_LoadNatives(std::vector& methods) +void JNI_LoadNatives(std::vector& methods) { methods.clear(); {{#functions}} diff -r b14ed1ea3a23 -r 26c08ff926a3 CodeGeneration/JavaClass.mustache --- a/CodeGeneration/JavaClass.mustache Thu Oct 19 11:14:45 2023 +0200 +++ b/CodeGeneration/JavaClass.mustache Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + {{#has_documentation}} /** * {{documentation}} diff -r b14ed1ea3a23 -r 26c08ff926a3 CodeGeneration/JavaEnumeration.mustache --- a/CodeGeneration/JavaEnumeration.mustache Thu Oct 19 11:14:45 2023 +0200 +++ b/CodeGeneration/JavaEnumeration.mustache Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + {{#has_documentation}} /** {{#documentation}} diff -r b14ed1ea3a23 -r 26c08ff926a3 CodeGeneration/JavaFunctions.mustache --- a/CodeGeneration/JavaFunctions.mustache Thu Oct 19 11:14:45 2023 +0200 +++ b/CodeGeneration/JavaFunctions.mustache Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Wrapper around the global functions provided by the Orthanc SDK. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 CodeGeneration/JavaNativeSDK.mustache --- a/CodeGeneration/JavaNativeSDK.mustache Thu Oct 19 11:14:45 2023 +0200 +++ b/CodeGeneration/JavaNativeSDK.mustache Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + class NativeSDK { {{#functions}} public static native {{return.java_type}} {{c_function}}({{#class_name}}long self{{#has_args}},{{/has_args}} {{/class_name}}{{#args}}{{java_type}} {{name}}{{^last}}, {{/last}}{{/args}}); diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/ChangeType.java --- a/JavaSDK/be/uclouvain/orthanc/ChangeType.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/ChangeType.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The supported types of changes that can be signaled to the change callback. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/CompressionType.java --- a/JavaSDK/be/uclouvain/orthanc/CompressionType.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/CompressionType.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The compression algorithms that are supported by the Orthanc core. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/ConstraintType.java --- a/JavaSDK/be/uclouvain/orthanc/ConstraintType.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/ConstraintType.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The constraints on the tags (main DICOM tags and identifier tags) that must be * supported by the database plugins. diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/ContentType.java --- a/JavaSDK/be/uclouvain/orthanc/ContentType.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/ContentType.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The content types that are supported by Orthanc plugins. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/CreateDicomFlags.java --- a/JavaSDK/be/uclouvain/orthanc/CreateDicomFlags.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/CreateDicomFlags.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Flags to the creation of a DICOM file. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/DicomInstance.java --- a/JavaSDK/be/uclouvain/orthanc/DicomInstance.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/DicomInstance.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * DICOM instance managed by the Orthanc core **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/DicomToJsonFlags.java --- a/JavaSDK/be/uclouvain/orthanc/DicomToJsonFlags.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/DicomToJsonFlags.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Flags to customize a DICOM-to-JSON conversion. By default, binary tags are * formatted using Data URI scheme. diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/DicomToJsonFormat.java --- a/JavaSDK/be/uclouvain/orthanc/DicomToJsonFormat.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/DicomToJsonFormat.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The possible output formats for a DICOM-to-JSON conversion. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/DicomWebBinaryMode.java --- a/JavaSDK/be/uclouvain/orthanc/DicomWebBinaryMode.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/DicomWebBinaryMode.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The available modes to export a binary DICOM tag into a DICOMweb JSON or XML * document. diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/DicomWebNode.java --- a/JavaSDK/be/uclouvain/orthanc/DicomWebNode.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/DicomWebNode.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Node visited by DICOMweb conversion **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/ErrorCode.java --- a/JavaSDK/be/uclouvain/orthanc/ErrorCode.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/ErrorCode.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The various error codes that can be returned by the Orthanc core. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/FindAnswers.java --- a/JavaSDK/be/uclouvain/orthanc/FindAnswers.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/FindAnswers.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Answers to a DICOM C-FIND query **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/FindMatcher.java --- a/JavaSDK/be/uclouvain/orthanc/FindMatcher.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/FindMatcher.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Matcher for DICOM C-FIND query **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/FindQuery.java --- a/JavaSDK/be/uclouvain/orthanc/FindQuery.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/FindQuery.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * DICOM C-FIND query **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/Functions.java --- a/JavaSDK/be/uclouvain/orthanc/Functions.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/Functions.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Wrapper around the global functions provided by the Orthanc SDK. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/HttpMethod.java --- a/JavaSDK/be/uclouvain/orthanc/HttpMethod.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/HttpMethod.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The various HTTP methods for a REST call. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/IdentifierConstraint.java --- a/JavaSDK/be/uclouvain/orthanc/IdentifierConstraint.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/IdentifierConstraint.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The constraints on the DICOM identifiers that must be supported by the database * plugins. diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/Image.java --- a/JavaSDK/be/uclouvain/orthanc/Image.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/Image.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * 2D image managed by the Orthanc core **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/ImageFormat.java --- a/JavaSDK/be/uclouvain/orthanc/ImageFormat.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/ImageFormat.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The image formats that are supported by the Orthanc core. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/InstanceOrigin.java --- a/JavaSDK/be/uclouvain/orthanc/InstanceOrigin.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/InstanceOrigin.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The origin of a DICOM instance that has been received by Orthanc. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/Job.java --- a/JavaSDK/be/uclouvain/orthanc/Job.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/Job.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Orthanc job **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/JobStepStatus.java --- a/JavaSDK/be/uclouvain/orthanc/JobStepStatus.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/JobStepStatus.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The possible status for one single step of a job. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/JobStopReason.java --- a/JavaSDK/be/uclouvain/orthanc/JobStopReason.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/JobStopReason.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Explains why the job should stop and release the resources it has allocated. * This is especially important to disambiguate between the "paused" condition and diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/MetricsType.java --- a/JavaSDK/be/uclouvain/orthanc/MetricsType.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/MetricsType.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The available types of metrics. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/NativeSDK.java --- a/JavaSDK/be/uclouvain/orthanc/NativeSDK.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/NativeSDK.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + class NativeSDK { public static native int OrthancPluginCheckVersionAdvanced(int arg0, int arg1, int arg2); public static native int OrthancPluginCheckVersion(); diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/Peers.java --- a/JavaSDK/be/uclouvain/orthanc/Peers.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/Peers.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Orthanc peer **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/PixelFormat.java --- a/JavaSDK/be/uclouvain/orthanc/PixelFormat.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/PixelFormat.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The memory layout of the pixels of an image. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/ReceivedInstanceAction.java --- a/JavaSDK/be/uclouvain/orthanc/ReceivedInstanceAction.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/ReceivedInstanceAction.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The action to be taken after ReceivedInstanceCallback is triggered **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/ResourceType.java --- a/JavaSDK/be/uclouvain/orthanc/ResourceType.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/ResourceType.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The supported types of DICOM resources. **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/RestOutput.java --- a/JavaSDK/be/uclouvain/orthanc/RestOutput.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/RestOutput.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Output for a call to the REST API of Orthanc **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/ServerChunkedRequestReader.java --- a/JavaSDK/be/uclouvain/orthanc/ServerChunkedRequestReader.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/ServerChunkedRequestReader.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Read for a chunked HTTP request **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/StorageArea.java --- a/JavaSDK/be/uclouvain/orthanc/StorageArea.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/StorageArea.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Storage area plugin **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/StorageCommitmentFailureReason.java --- a/JavaSDK/be/uclouvain/orthanc/StorageCommitmentFailureReason.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/StorageCommitmentFailureReason.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The available values for the Failure Reason (0008,1197) during storage * commitment. diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/ValueRepresentation.java --- a/JavaSDK/be/uclouvain/orthanc/ValueRepresentation.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/ValueRepresentation.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * The value representations present in the DICOM standard (version 2013). **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/WorklistAnswers.java --- a/JavaSDK/be/uclouvain/orthanc/WorklistAnswers.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/WorklistAnswers.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * Answers to a DICOM C-FIND worklist query **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 JavaSDK/be/uclouvain/orthanc/WorklistQuery.java --- a/JavaSDK/be/uclouvain/orthanc/WorklistQuery.java Thu Oct 19 11:14:45 2023 +0200 +++ b/JavaSDK/be/uclouvain/orthanc/WorklistQuery.java Thu Oct 19 11:21:20 2023 +0200 @@ -24,6 +24,8 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + /** * DICOM C-FIND worklist query **/ diff -r b14ed1ea3a23 -r 26c08ff926a3 Plugin/CMakeLists.txt --- a/Plugin/CMakeLists.txt Thu Oct 19 11:14:45 2023 +0200 +++ b/Plugin/CMakeLists.txt Thu Oct 19 11:21:20 2023 +0200 @@ -116,6 +116,7 @@ JavaString.cpp JavaVirtualMachine.cpp Mutex.cpp + NativeSDK.cpp OrthancBytes.cpp OrthancString.cpp Plugin.cpp diff -r b14ed1ea3a23 -r 26c08ff926a3 Plugin/NativeSDK.cpp --- a/Plugin/NativeSDK.cpp Thu Oct 19 11:14:45 2023 +0200 +++ b/Plugin/NativeSDK.cpp Thu Oct 19 11:21:20 2023 +0200 @@ -22,6 +22,20 @@ **/ +// WARNING: Auto-generated file. Do not modify it by hand. + +#include "JavaBytes.h" +#include "JavaEnvironment.h" +#include "JavaString.h" +#include "OrthancBytes.h" +#include "OrthancString.h" + +#include + +#include + +extern OrthancPluginContext* context_; + JNIEXPORT jint JNI_OrthancPluginCheckVersionAdvanced(JNIEnv* env, jobject sdkObject, jint arg0, jint arg1, jint arg2) { @@ -3607,7 +3621,7 @@ } -static void JNI_LoadNatives(std::vector& methods) +void JNI_LoadNatives(std::vector& methods) { methods.clear(); diff -r b14ed1ea3a23 -r 26c08ff926a3 Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Thu Oct 19 11:14:45 2023 +0200 +++ b/Plugin/Plugin.cpp Thu Oct 19 11:21:20 2023 +0200 @@ -52,8 +52,8 @@ static std::unique_ptr java_; -#include "NativeSDK.cpp" - +// This function is implemented in the "NativeSDK.cpp" auto-generated file +extern void JNI_LoadNatives(std::vector& methods); #define MAX_REST_CALLBACKS 10