]> gerrit.simantics Code Review - simantics/fmil.git/blobdiff - org.simantics.fmil.core/native/FMILibrary/ThirdParty/FMI/default/FMI1/fmiPlatformTypes.h
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / ThirdParty / FMI / default / FMI1 / fmiPlatformTypes.h
diff --git a/org.simantics.fmil.core/native/FMILibrary/ThirdParty/FMI/default/FMI1/fmiPlatformTypes.h b/org.simantics.fmil.core/native/FMILibrary/ThirdParty/FMI/default/FMI1/fmiPlatformTypes.h
new file mode 100644 (file)
index 0000000..7916f79
--- /dev/null
@@ -0,0 +1,73 @@
+#ifndef fmiPlatformTypes_h\r
+#define fmiPlatformTypes_h\r
+\r
+/* Standard header file to define the argument types of the\r
+   functions of the Model Execution Interface.\r
+   This header file must be utilized both by the model and\r
+   by the simulation engine.\r
+\r
+   Revisions:\r
+   - October 2010: First public Version\r
+\r
+\r
+   Copyright © 2008-2010, MODELISAR consortium. All rights reserved.\r
+   This file is licensed by the copyright holders under the BSD License\r
+   (http://www.opensource.org/licenses/bsd-license.html):\r
+\r
+\r
+   ----------------------------------------------------------------------------\r
+   Redistribution and use in source and binary forms, with or without\r
+   modification, are permitted provided that the following conditions are met:\r
+\r
+   - Redistributions of source code must retain the above copyright notice,\r
+     this list of conditions and the following disclaimer.\r
+   - Redistributions in binary form must reproduce the above copyright notice,\r
+     this list of conditions and the following disclaimer in the documentation\r
+     and/or other materials provided with the distribution.\r
+   - Neither the name of the copyright holders nor the names of its\r
+     contributors may be used to endorse or promote products derived\r
+     from this software without specific prior written permission.\r
+\r
+   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r
+   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED\r
+   TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
+   PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR\r
+   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r
+   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\r
+   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;\r
+   OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\r
+   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR\r
+   OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF\r
+   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
+   ----------------------------------------------------------------------------\r
+*/\r
+\r
+/* Platform (combination of machine, compiler, operating system) */\r
+#define fmiPlatform "standard32"\r
+\r
+/* Type definitions of variables passed as arguments\r
+   Version "standard32" means:\r
+\r
+   fmiComponent     : 32 bit pointer\r
+   fmiValueReference: 32 bit\r
+   fmiReal          : 64 bit\r
+   fmiInteger       : 32 bit\r
+   fmiBoolean       :  8 bit\r
+   fmiString        : 32 bit pointer\r
+\r
+*/\r
+   typedef void*        fmiComponent;\r
+   typedef unsigned int fmiValueReference;\r
+   typedef double       fmiReal   ;\r
+   typedef int          fmiInteger;\r
+   typedef char         fmiBoolean;\r
+   typedef const char*  fmiString ;\r
+\r
+/* Values for fmiBoolean  */\r
+#define fmiTrue  1\r
+#define fmiFalse 0\r
+\r
+/* Undefined value for fmiValueReference (largest unsigned int value) */\r
+#define fmiUndefinedValueReference (fmiValueReference)(-1)\r
+\r
+#endif\r