152#if !defined(FMI2_Export)
153 #if !defined(FMI2_FUNCTION_PREFIX)
154 #if defined _WIN32 || defined __CYGWIN__
156 #define FMI2_Export __declspec(dllexport)
159 #define FMI2_Export __attribute__ ((visibility ("default")))
171#if defined(FMI2_FUNCTION_PREFIX)
172 #define fmi2Paste(a,b) a ## b
173 #define fmi2PasteB(a,b) fmi2Paste(a,b)
174 #define fmi2FullName(name) fmi2PasteB(FMI2_FUNCTION_PREFIX, name)
176 #define fmi2FullName(name) name
182#define fmi2GetTypesPlatform fmi2FullName(fmi2GetTypesPlatform)
183#define fmi2GetVersion fmi2FullName(fmi2GetVersion)
184#define fmi2SetDebugLogging fmi2FullName(fmi2SetDebugLogging)
185#define fmi2Instantiate fmi2FullName(fmi2Instantiate)
186#define fmi2FreeInstance fmi2FullName(fmi2FreeInstance)
187#define fmi2SetupExperiment fmi2FullName(fmi2SetupExperiment)
188#define fmi2EnterInitializationMode fmi2FullName(fmi2EnterInitializationMode)
189#define fmi2ExitInitializationMode fmi2FullName(fmi2ExitInitializationMode)
190#define fmi2Terminate fmi2FullName(fmi2Terminate)
191#define fmi2Reset fmi2FullName(fmi2Reset)
192#define fmi2GetReal fmi2FullName(fmi2GetReal)
193#define fmi2GetInteger fmi2FullName(fmi2GetInteger)
194#define fmi2GetBoolean fmi2FullName(fmi2GetBoolean)
195#define fmi2GetString fmi2FullName(fmi2GetString)
196#define fmi2SetReal fmi2FullName(fmi2SetReal)
197#define fmi2SetInteger fmi2FullName(fmi2SetInteger)
198#define fmi2SetBoolean fmi2FullName(fmi2SetBoolean)
199#define fmi2SetString fmi2FullName(fmi2SetString)
200#define fmi2GetFMUstate fmi2FullName(fmi2GetFMUstate)
201#define fmi2SetFMUstate fmi2FullName(fmi2SetFMUstate)
202#define fmi2FreeFMUstate fmi2FullName(fmi2FreeFMUstate)
203#define fmi2SerializedFMUstateSize fmi2FullName(fmi2SerializedFMUstateSize)
204#define fmi2SerializeFMUstate fmi2FullName(fmi2SerializeFMUstate)
205#define fmi2DeSerializeFMUstate fmi2FullName(fmi2DeSerializeFMUstate)
206#define fmi2GetDirectionalDerivative fmi2FullName(fmi2GetDirectionalDerivative)
212#define fmi2EnterEventMode fmi2FullName(fmi2EnterEventMode)
213#define fmi2NewDiscreteStates fmi2FullName(fmi2NewDiscreteStates)
214#define fmi2EnterContinuousTimeMode fmi2FullName(fmi2EnterContinuousTimeMode)
215#define fmi2CompletedIntegratorStep fmi2FullName(fmi2CompletedIntegratorStep)
216#define fmi2SetTime fmi2FullName(fmi2SetTime)
217#define fmi2SetContinuousStates fmi2FullName(fmi2SetContinuousStates)
218#define fmi2GetDerivatives fmi2FullName(fmi2GetDerivatives)
219#define fmi2GetEventIndicators fmi2FullName(fmi2GetEventIndicators)
220#define fmi2GetContinuousStates fmi2FullName(fmi2GetContinuousStates)
221#define fmi2GetNominalsOfContinuousStates fmi2FullName(fmi2GetNominalsOfContinuousStates)
227#define fmi2SetRealInputDerivatives fmi2FullName(fmi2SetRealInputDerivatives)
228#define fmi2GetRealOutputDerivatives fmi2FullName(fmi2GetRealOutputDerivatives)
229#define fmi2DoStep fmi2FullName(fmi2DoStep)
230#define fmi2CancelStep fmi2FullName(fmi2CancelStep)
231#define fmi2GetStatus fmi2FullName(fmi2GetStatus)
232#define fmi2GetRealStatus fmi2FullName(fmi2GetRealStatus)
233#define fmi2GetIntegerStatus fmi2FullName(fmi2GetIntegerStatus)
234#define fmi2GetBooleanStatus fmi2FullName(fmi2GetBooleanStatus)
235#define fmi2GetStringStatus fmi2FullName(fmi2GetStringStatus)
238#define fmi2Version "2.0"
fmi2Status fmi2SetDebugLoggingTYPE(fmi2Component c, fmi2Boolean loggingOn, size_t nCategories, const fmi2String categories[])
fmi2Status fmi2TerminateTYPE(fmi2Component c)
fmi2Status fmi2SerializeFMUstateTYPE(fmi2Component c, fmi2FMUstate FMUstate, fmi2Byte[], size_t size)
fmi2Status fmi2CancelStepTYPE(fmi2Component c)
fmi2Status fmi2ResetTYPE(fmi2Component c)
void fmi2FreeInstanceTYPE(fmi2Component c)
fmi2Status fmi2SetContinuousStatesTYPE(fmi2Component c, const fmi2Real x[], size_t nx)
fmi2Status fmi2GetRealOutputDerivativesTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer order[], fmi2Real value[])
const char * fmi2GetTypesPlatformTYPE(void)
fmi2Status fmi2SetFMUstateTYPE(fmi2Component c, fmi2FMUstate FMUstate)
fmi2Status fmi2FreeFMUstateTYPE(fmi2Component c, fmi2FMUstate *FMUstate)
fmi2Status fmi2SetRealInputDerivativesTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer order[], const fmi2Real value[])
fmi2Status fmi2GetBooleanStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2Boolean *value)
fmi2Status fmi2DeSerializeFMUstateTYPE(fmi2Component c, const fmi2Byte serializedState[], size_t size, fmi2FMUstate *FMUstate)
fmi2Status fmi2SerializedFMUstateSizeTYPE(fmi2Component c, fmi2FMUstate FMUstate, size_t *size)
fmi2Status fmi2EnterInitializationModeTYPE(fmi2Component c)
fmi2Status fmi2ExitInitializationModeTYPE(fmi2Component c)
fmi2Component fmi2InstantiateTYPE(fmi2String instanceName, fmi2Type fmuType, fmi2String fmuGUID, fmi2String fmuResourceLocation, const fmi2CallbackFunctions *functions, fmi2Boolean visible, fmi2Boolean loggingOn)
fmi2Status fmi2EnterContinuousTimeModeTYPE(fmi2Component c)
fmi2Status fmi2GetStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2Status *value)
const char * fmi2GetVersionTYPE(void)
fmi2Status fmi2GetBooleanTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Boolean value[])
fmi2Status fmi2SetStringTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2String value[])
fmi2Status fmi2GetContinuousStatesTYPE(fmi2Component c, fmi2Real x[], size_t nx)
fmi2Status fmi2SetTimeTYPE(fmi2Component c, fmi2Real time)
fmi2Status fmi2GetFMUstateTYPE(fmi2Component c, fmi2FMUstate *FMUstate)
fmi2Status fmi2GetStringStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2String *value)
fmi2Status fmi2DoStepTYPE(fmi2Component c, fmi2Real currentCommunicationPoint, fmi2Real communicationStepSize, fmi2Boolean noSetFMUStatePriorToCurrentPoint)
fmi2Status fmi2SetRealTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Real value[])
fmi2Status fmi2GetIntegerTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Integer value[])
fmi2Status fmi2GetNominalsOfContinuousStatesTYPE(fmi2Component c, fmi2Real x_nominal[], size_t nx)
fmi2Status fmi2GetDerivativesTYPE(fmi2Component c, fmi2Real derivatives[], size_t nx)
fmi2Status fmi2GetDirectionalDerivativeTYPE(fmi2Component c, const fmi2ValueReference vUnknown_ref[], size_t nUnknown, const fmi2ValueReference vKnown_ref[], size_t nKnown, const fmi2Real dvKnown[], fmi2Real dvUnknown[])
fmi2Status fmi2NewDiscreteStatesTYPE(fmi2Component c, fmi2EventInfo *fmi2eventInfo)
fmi2Status fmi2GetStringTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2String value[])
fmi2Status fmi2SetBooleanTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Boolean value[])
fmi2Status fmi2SetupExperimentTYPE(fmi2Component c, fmi2Boolean toleranceDefined, fmi2Real tolerance, fmi2Real startTime, fmi2Boolean stopTimeDefined, fmi2Real stopTime)
fmi2Status fmi2SetIntegerTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer value[])
fmi2Status fmi2GetIntegerStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2Integer *value)
fmi2Status fmi2GetRealTYPE(fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Real value[])
fmi2Status fmi2CompletedIntegratorStepTYPE(fmi2Component c, fmi2Boolean noSetFMUStatePriorToCurrentPoint, fmi2Boolean *enterEventMode, fmi2Boolean *terminateSimulation)
fmi2Status fmi2GetEventIndicatorsTYPE(fmi2Component c, fmi2Real eventIndicators[], size_t ni)
fmi2Status fmi2GetRealStatusTYPE(fmi2Component c, const fmi2StatusKind s, fmi2Real *value)
fmi2Status fmi2EnterEventModeTYPE(fmi2Component c)
#define fmi2GetStringStatus
#define fmi2GetNominalsOfContinuousStates
#define fmi2SetRealInputDerivatives
#define fmi2SetContinuousStates
#define fmi2GetTypesPlatform
#define fmi2CompletedIntegratorStep
#define fmi2SerializeFMUstate
#define fmi2SerializedFMUstateSize
#define fmi2ExitInitializationMode
#define fmi2GetBooleanStatus
#define fmi2GetRealOutputDerivatives
#define fmi2EnterInitializationMode
#define fmi2DeSerializeFMUstate
#define fmi2GetRealStatus
#define fmi2NewDiscreteStates
#define fmi2EnterEventMode
#define fmi2GetContinuousStates
#define fmi2GetDerivatives
#define fmi2GetIntegerStatus
#define fmi2GetEventIndicators
#define fmi2SetDebugLogging
#define fmi2GetDirectionalDerivative
#define fmi2EnterContinuousTimeMode
#define fmi2SetupExperiment