diff Plugins/Include/orthanc/OrthancCPlugin.h @ 1578:09715095fc53

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 15:33:36 +0200
parents 89ab71a68fcf
children b93c398f934d
line wrap: on
line diff
--- a/Plugins/Include/orthanc/OrthancCPlugin.h	Tue Aug 25 15:10:45 2015 +0200
+++ b/Plugins/Include/orthanc/OrthancCPlugin.h	Tue Aug 25 15:33:36 2015 +0200
@@ -156,6 +156,14 @@
 #endif
 
   /**
+   * The various error codes that can be returned by the Orthanc core.
+   **/
+  typedef enum
+  {
+  } OrthancPluginErrorCode;
+
+
+  /**
    * Forward declaration of one of the mandatory functions for Orthanc
    * plugins.
    **/
@@ -600,6 +608,12 @@
   {
     int major, minor, revision;
 
+    if (sizeof(int32_t) != sizeof(OrthancPluginErrorCode))
+    {
+      /* Mismatch in the size of the enumerations */
+      return 0;
+    }
+
     /* Assume compatibility with the mainline */
     if (!strcmp(context->orthancVersion, "mainline"))
     {