]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil.core/native/FMILibrary/src/Import/src/FMI1/fmi1_import_cosim.c
Add FMILibrary-2.0.3 to org.simantics.fmil.core\native.
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / src / Import / src / FMI1 / fmi1_import_cosim.c
1 /*
2     Copyright (C) 2012 Modelon AB
3
4     This program is free software: you can redistribute it and/or modify
5     it under the terms of the BSD style license.
6
7      This program is distributed in the hope that it will be useful,
8     but WITHOUT ANY WARRANTY; without even the implied warranty of
9     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10     FMILIB_License.txt file for more details.
11
12     You should have received a copy of the FMILIB_License.txt file
13     along with this program. If not, contact Modelon AB <http://www.modelon.com>.
14 */
15 #include <JM/jm_vector.h>
16 #include <FMI1/fmi1_xml_model_description.h>
17 #include "fmi1_import_impl.h"
18
19 fmi1_fmu_kind_enu_t fmi1_import_get_fmu_kind(fmi1_import_t* fmu) {
20     return fmi1_xml_get_fmu_kind(fmu->md);
21 }
22
23 fmi1_import_capabilities_t* fmi1_import_get_capabilities(fmi1_import_t* fmu){
24     return fmi1_xml_get_capabilities(fmu->md);
25 }
26
27 size_t fmi1_import_get_number_of_additional_models(fmi1_import_t* fmu) {
28     return fmi1_xml_get_number_of_additional_models(fmu->md);
29 }
30
31 const char* fmi1_import_get_additional_model_name(fmi1_import_t* fmu, size_t index) {
32         return fmi1_xml_get_additional_model_name(fmu->md, index);
33 }
34
35
36 const char* fmi1_import_get_entry_point(fmi1_import_t* fmu) {
37         return fmi1_xml_get_entry_point(fmu->md);
38 }
39
40 const char* fmi1_import_get_mime_type(fmi1_import_t* fmu){
41     return fmi1_xml_get_mime_type(fmu->md);
42 }
43
44 int fmi1_import_get_manual_start(fmi1_import_t* fmu){
45     return fmi1_xml_get_manual_start(fmu->md);
46 }