FMI Library: part of JModelica.org
fmi_util.h
Go to the documentation of this file.
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 FMI_UTIL_H
17 #define FMI_UTIL_H
18 #include <fmilib_config.h>
19 #include <JM/jm_callbacks.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
38 FMILIB_EXPORT char* fmi_construct_dll_dir_name(jm_callbacks* callbacks, const char* fmu_unzipped_path);
39 
46 FMILIB_EXPORT char* fmi_construct_dll_file_name(jm_callbacks* callbacks, const char* dll_dir_name, const char* model_identifier);
47 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 /* FMI_UTIL_H */
54 #endif
Library configuration file generated by the build system.
FMILIB_EXPORT char * fmi_construct_dll_dir_name(jm_callbacks *callbacks, const char *fmu_unzipped_path)
Given directory name fmu_unzipped_path and construct the directory path for Dll/so.
FMILIB_EXPORT char * fmi_construct_dll_file_name(jm_callbacks *callbacks, const char *dll_dir_name, const char *model_identifier)
Given model_identifier construct the dll/so name by adding platform suffix.
#define FMILIB_EXPORT
Used to declare the public API of the library needed for dynamic linking.
v callbacks
The callbacks struct is sent to all the modules in the library.
Definition: jm_callbacks.h:73