]> gerrit.simantics Code Review - simantics/fmil.git/blobdiff - org.simantics.fmil.core/native/FMILibrary/src/Import/include/FMI1/fmi1_import_capi.h
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / src / Import / include / FMI1 / fmi1_import_capi.h
diff --git a/org.simantics.fmil.core/native/FMILibrary/src/Import/include/FMI1/fmi1_import_capi.h b/org.simantics.fmil.core/native/FMILibrary/src/Import/include/FMI1/fmi1_import_capi.h
new file mode 100644 (file)
index 0000000..d7fd068
--- /dev/null
@@ -0,0 +1,507 @@
+/*\r
+    Copyright (C) 2012 Modelon AB\r
+\r
+    This program is free software: you can redistribute it and/or modify\r
+    it under the terms of the BSD style license.
+\r
+    This program is distributed in the hope that it will be useful,\r
+    but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+    FMILIB_License.txt file for more details.\r
+\r
+    You should have received a copy of the FMILIB_License.txt file\r
+    along with this program. If not, contact Modelon AB <http://www.modelon.com>.\r
+*/\r
+\r
+#ifndef FMI1_IMPORT_CAPI_H_\r
+#define FMI1_IMPORT_CAPI_H_\r
+\r
+#ifdef __cplusplus
+extern "C" {
+#endif\r
+\r
+#include <JM/jm_callbacks.h>\r
+#include <FMI/fmi_import_util.h>\r
+#include <FMI/fmi_import_context.h>\r
+/* #include <FMI1/fmi1_xml_model_description.h>*/\r
+\r
+#include <FMI1/fmi1_types.h>
+#include <FMI1/fmi1_functions.h>
+#include <FMI1/fmi1_enums.h>\r
+/* #include <FMI1/fmi1_capi.h> */\r
+\r
+/**
+\file fmi1_import_capi.h
+Wrapper functions for the FMI 1.0 functions
+*/\r
+\r
+/**\r
+ * \addtogroup fmi1_import_capi\r
+ * @{\r
+ */\r
+\r
+/**    \addtogroup fmi1_import_capi_const_destroy FMI 1.0 Constructor and Destructor   \r
+ * \brief Functions for instantiating and freeing the container of the struct that is responsible for the FMI functions.\r
+ *\r
+ *     Before any of the FMI functions may be called, the construction function must instantiate a fmi_import_t module.\r
+ *     After the fmi_import_t module has been succesfully instantiated, all the FMI functions can be called. To unload\r
+ *     the FMI functions, the destroy functions shall be called.\r
+ *\r
+ *     \addtogroup fmi1_import_capi_me FMI 1.0 (ME) Model Exchange functions\r
+ * \brief List of Model Exchange wrapper functions. Common functions are not listed.\r
+ *     \addtogroup fmi1_import_capi_cs FMI 1.0 (CS) Co-Simulation functions \r
+ * \brief List of Co-Simulation wrapper functions. Common functions are not listed.\r
+ *     \addtogroup fmi1_import_capi_common FMI 1.0 (ME & CS) Common functions\r
+ * \brief List of wrapper functions that are in common for both Model Exchange and Co-Simulation.\r
+ */\r
+\r
+/**\r
+ * \addtogroup fmi1_import_capi_const_destroy\r
+ * @{\r
+ */\r
+\r
+/**\r
+ * \brief Create a C-API struct. The C-API struct is a placeholder for the FMI DLL functions.\r
+ *\r
+ * This function may only be called once if it returned succesfully. fmi1_import_destroy_dllfmu \r
+ * must be called before this function can be called again. \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml().\r
+ * @param callBackFunctions Callback functions used by the FMI functions internally.\r
+ * @param registerGlobally Register the FMU globally to enable use of fmi1_log_forwarding(). If this parameter is non-zero the code becomes non-thread safe.\r
+ * @return Error status. If the function returns with an error, it is not allowed to call any of the other C-API functions.\r
+ */
+FMILIB_EXPORT jm_status_enu_t fmi1_import_create_dllfmu(fmi1_import_t* fmu, fmi1_callback_functions_t callBackFunctions, int registerGlobally);
+
+/** \brief Free a C-API struct. All memory allocated since the struct was created is freed.\r
+ * \r
+ * @param fmu A model description object returned from fmi1_import_parse_xml().\r
+ */
+FMILIB_EXPORT void fmi1_import_destroy_dllfmu(fmi1_import_t* fmu);
+
+/**\r
+ * \brief Set CAPI debug mode flag. Setting to non-zero prevents DLL unloading in fmi1_import_destroy_dllfmu\r
+ *  while all the memory is deallocated. This is to support valgrind debugging. \r
+ * \r
+ * @param fmu C-API struct that has succesfully loaded the FMI function.\r
+ * @param mode The debug mode to set.\r
+ */\r
+FMILIB_EXPORT void fmi1_import_set_debug_mode(fmi1_import_t* fmu, int mode);
+
+/**@} */
+
+/**\r
+ * \addtogroup fmi1_import_capi_common\r
+ * @{\r
+ */
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetVersion() \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @return FMI version.\r
+ */
+FMILIB_EXPORT const char* fmi1_import_get_version(fmi1_import_t* fmu);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiSetDebugLogging(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param loggingOn Enable or disable the debug logger.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_set_debug_logging(fmi1_import_t* fmu, fmi1_boolean_t loggingOn);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiSetReal(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value Array of variable values.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_set_real(fmi1_import_t* fmu, const fmi1_value_reference_t vr[], size_t nvr, const fmi1_real_t    value[]);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiSetInteger(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value Array of variable values.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_set_integer(fmi1_import_t* fmu, const fmi1_value_reference_t vr[], size_t nvr, const fmi1_integer_t value[]);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiSetBoolean(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value Array of variable values.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_set_boolean(fmi1_import_t* fmu, const fmi1_value_reference_t vr[], size_t nvr, const fmi1_boolean_t value[]);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiSetString(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value Array of variable values.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_set_string(fmi1_import_t* fmu, const fmi1_value_reference_t vr[], size_t nvr, const fmi1_string_t  value[]);
+
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetReal(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value (Output)Array of variable values.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_real(fmi1_import_t* fmu, const fmi1_value_reference_t vr[], size_t nvr, fmi1_real_t    value[]);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetInteger(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value (Output)Array of variable values.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_integer(fmi1_import_t* fmu, const fmi1_value_reference_t vr[], size_t nvr, fmi1_integer_t value[]);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetBoolean(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value (Output)Array of variable values.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_boolean(fmi1_import_t* fmu, const fmi1_value_reference_t vr[], size_t nvr, fmi1_boolean_t value[]);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetString(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param value (Output)Array of variable values.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_string(fmi1_import_t* fmu, const fmi1_value_reference_t vr[], size_t nvr, fmi1_string_t  value[]);
+
+/**@} */
+
+/**\r
+ * \addtogroup fmi1_import_capi_me\r
+ * @{\r
+ */
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetModelTypesPlatform(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @return The platform the FMU was compiled for.\r
+ */
+FMILIB_EXPORT const char* fmi1_import_get_model_types_platform(fmi1_import_t* fmu);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiInstantiateModel(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param instanceName The name of the instance.\r
+ * @return Error status. Returnes jm_status_error if fmiInstantiateModel returned NULL, otherwise jm_status_success.\r
+ */
+FMILIB_EXPORT jm_status_enu_t fmi1_import_instantiate_model(fmi1_import_t* fmu, fmi1_string_t instanceName);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiFreeModelInstance(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ */
+FMILIB_EXPORT void fmi1_import_free_model_instance(fmi1_import_t* fmu);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiSetTime(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param time Set the current time.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_set_time(fmi1_import_t* fmu, fmi1_real_t time);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiSetContinuousStates(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param x Array of state values.\r
+ * @param nx Number of states.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_set_continuous_states(fmi1_import_t* fmu, const fmi1_real_t x[], size_t nx);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiCompletedIntegratorStep(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param callEventUpdate (Output) Call fmiEventUpdate indicator.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_completed_integrator_step(fmi1_import_t* fmu, fmi1_boolean_t* callEventUpdate);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiInitialize(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param toleranceControlled Enable or disable the use of relativeTolerance in the FMU.\r
+ * @param relativeTolerance A relative tolerance used in the FMU.\r
+ * @param eventInfo (Output) fmiEventInfo struct.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_initialize(fmi1_import_t* fmu, fmi1_boolean_t toleranceControlled, fmi1_real_t relativeTolerance, fmi1_event_info_t* eventInfo);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetDerivatives(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param derivatives (Output) Array of the derivatives.\r
+ * @param nx Number of derivatives.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_derivatives(fmi1_import_t* fmu, fmi1_real_t derivatives[], size_t nx);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetEventIndicators(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param eventIndicators (Output) The event indicators.\r
+ * @param ni Number of event indicators.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_event_indicators(fmi1_import_t* fmu, fmi1_real_t eventIndicators[], size_t ni);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiEventUpdate(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param intermediateResults Indicate whether or not the fmiEventUpdate shall return after every internal event interation.\r
+ * @param eventInfo (Output) An fmiEventInfo struct.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_eventUpdate(fmi1_import_t* fmu, fmi1_boolean_t intermediateResults, fmi1_event_info_t* eventInfo);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetContinuousStates(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param states (Output) Array of state values.\r
+ * @param nx Number of states.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_continuous_states(fmi1_import_t* fmu, fmi1_real_t states[], size_t nx);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetNominalContinuousStates(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param x_nominal (Output) The nominal values.\r
+ * @param nx Number of nominal values.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_nominal_continuous_states(fmi1_import_t* fmu, fmi1_real_t x_nominal[], size_t nx);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetStateValueReferences(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param vrx (Output) The value-references of the states.\r
+ * @param nx Number of value-references.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_state_value_references(fmi1_import_t* fmu, fmi1_value_reference_t vrx[], size_t nx);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiTerminate(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_terminate(fmi1_import_t* fmu);
+
+/**@} */
+
+/**\r
+ * \addtogroup fmi1_import_capi_cs\r
+ * @{\r
+ */
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetTypesPlatform(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @return The platform the FMU was compiled for.\r
+ */
+FMILIB_EXPORT const char* fmi1_import_get_types_platform(fmi1_import_t* fmu);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiInstantiateSlave(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param instanceName The name of the instance.\r
+ * @param fmuLocation Access path to the FMU archive. If null FMU will get the path to the directory where it was unpacked.\r
+ * @param mimeType MIME type. If NULL the FMU will get "application/x-fmu-sharedlibrary".\r
+ * @param timeout Communication timeout value in milli-seconds.\r
+ * @param visible Indicates whether or not the simulator application window shoule be visible.\r
+ * @param interactive Indicates whether the simulator application must be manually started by the user.\r
+ * @return Error status. Returnes jm_status_error if fmiInstantiateSlave returned NULL, otherwise jm_status_success.\r
+ */
+FMILIB_EXPORT jm_status_enu_t fmi1_import_instantiate_slave(fmi1_import_t* fmu, fmi1_string_t instanceName, fmi1_string_t fmuLocation, fmi1_string_t mimeType,
+                                                                                                                                fmi1_real_t timeout, fmi1_boolean_t visible, fmi1_boolean_t interactive);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiInitializeSlave(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param tStart Start time of the simulation\r
+ * @param StopTimeDefined Indicates whether or not the stop time is used.\r
+ * @param tStop The stop time of the simulation.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_initialize_slave(fmi1_import_t* fmu, fmi1_real_t tStart, fmi1_boolean_t StopTimeDefined, fmi1_real_t tStop);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiTerminateSlave(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_terminate_slave(fmi1_import_t* fmu);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiResetSlave(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_reset_slave(fmi1_import_t* fmu);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiFreeSlaveInstance(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ */
+FMILIB_EXPORT void fmi1_import_free_slave_instance(fmi1_import_t* fmu);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiSetRealInputDerivatives(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param order        Array of derivative orders.\r
+ * @param value Array of variable values.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_set_real_input_derivatives(fmi1_import_t* fmu, const fmi1_value_reference_t vr[], size_t nvr, const fmi1_integer_t order[], const  fmi1_real_t value[]);                                                  
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetOutputDerivatives(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param vr Array of value references.\r
+ * @param nvr Number of array elements.\r
+ * @param order        Array of derivative orders.\r
+ * @param value (Output) Array of variable values.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_real_output_derivatives(fmi1_import_t* fmu, const fmi1_value_reference_t vr[], size_t nvr, const fmi1_integer_t order[], fmi1_real_t value[]);                                              
+
+/**\r
+ * \brief Wrapper for the FMI function fmiCancelStep(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_cancel_step(fmi1_import_t* fmu);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiDoStep(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param currentCommunicationPoint Current communication point of the master.\r
+ * @param communicationStepSize Communication step size.\r
+ * @param newStep Indicates whether or not the last communication step was accepted by the master.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_do_step(fmi1_import_t* fmu, fmi1_real_t currentCommunicationPoint, fmi1_real_t communicationStepSize, fmi1_boolean_t newStep);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetStatus(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param s Kind of status to return the value for.\r
+ * @param value (Output) FMI status value.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_status(fmi1_import_t* fmu, const fmi1_status_kind_t s, fmi1_status_t*  value);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetRealStatus(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param s Kind of status to return the value for.\r
+ * @param value (Output) FMI real value.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_real_status(fmi1_import_t* fmu, const fmi1_status_kind_t s, fmi1_real_t*    value);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetIntegerStatus(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param s Kind of status to return the value for.\r
+ * @param value (Output) FMI integer value.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_integer_status(fmi1_import_t* fmu, const fmi1_status_kind_t s, fmi1_integer_t* value);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetBooleanStatus(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param s Kind of status to return the value for.\r
+ * @param value (Output) FMI boolean value.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_boolean_status(fmi1_import_t* fmu, const fmi1_status_kind_t s, fmi1_boolean_t* value);
+
+/**\r
+ * \brief Wrapper for the FMI function fmiGetStringStatus(...) \r
+ * \r
+ * @param fmu A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu().\r
+ * @param s Kind of status to return the value for.\r
+ * @param value (Output) FMI string value.\r
+ * @return FMI status.\r
+ */
+FMILIB_EXPORT fmi1_status_t fmi1_import_get_string_status(fmi1_import_t* fmu, const fmi1_status_kind_t s, fmi1_string_t*  value);\r
+\r
+/**@} */\r
+\r
+\r
+/**@} */\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+#endif /* End of header FMI1_IMPORT_CAPI_H_ */\r