]> gerrit.simantics Code Review - simantics/fmil.git/blob - org.simantics.fmil.core/native/FMILibrary/src/XML/src/FMI1/fmi1_xml_vendor_annotations_impl.h
Switch to full JavaSE-11+ compatibility
[simantics/fmil.git] / org.simantics.fmil.core / native / FMILibrary / src / XML / src / FMI1 / fmi1_xml_vendor_annotations_impl.h
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
16 #ifndef FMI1_XML_VENDORANNOTATIONS_H
17 #define FMI1_XML_VENDORANNOTATIONS_H
18
19 #include <JM/jm_named_ptr.h>
20
21 #include <FMI1/fmi1_xml_model_description.h>
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 struct fmi1_xml_annotation_t {
28     const char* name;
29     char value[1];
30 };
31
32 struct fmi1_xml_vendor_t {
33     jm_vector(jm_named_ptr) annotations;
34     char name[1];
35 };
36
37 void fmi1_xml_vendor_free(fmi1_xml_vendor_t* v);
38
39 struct fmi1_xml_vendor_list_t {
40     jm_vector(jm_voidp) vendors;
41 };
42
43 #ifdef __cplusplus
44 }
45 #endif
46
47 #endif /* FMI1_XML_VENDORANNOTATIONS_H */