diff Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 2268:ce5c13b95dac

New function: OrthancPluginRegisterIncomingHttpRequestFilter2()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 22 Feb 2017 21:49:16 +0100
parents f915aff7a866
children 878b59270859
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Wed Feb 22 13:32:05 2017 +0100
+++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp	Wed Feb 22 21:49:16 2017 +0100
@@ -1126,14 +1126,14 @@
   }
 
 
-  static void ReportIncompatibleVersion(OrthancPluginContext* context,
-                                        unsigned int major,
-                                        unsigned int minor,
-                                        unsigned int revision)
+  void ReportMinimalOrthancVersion(OrthancPluginContext* context,
+                                   unsigned int major,
+                                   unsigned int minor,
+                                   unsigned int revision)
   {
     std::string s = ("Your version of the Orthanc core (" +
                      std::string(context->orthancVersion) +
-                     ") is too old to run this plugin (" +
+                     ") is too old to run this plugin (version " +
                      boost::lexical_cast<std::string>(major) + "." +
                      boost::lexical_cast<std::string>(minor) + "." +
                      boost::lexical_cast<std::string>(revision) + 
@@ -1189,7 +1189,6 @@
 
     if (a < major)
     {
-      ReportIncompatibleVersion(context, major, minor, revision);
       return false;
     }
 
@@ -1204,7 +1203,6 @@
 
     if (b < minor)
     {
-      ReportIncompatibleVersion(context, major, minor, revision);
       return false;
     }
 
@@ -1217,7 +1215,6 @@
     }
     else
     {
-      ReportIncompatibleVersion(context, major, minor, revision);
       return false;
     }
   }