FMI Library: part of JModelica.org
fmi_import_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 FMI1_IMPORT_UTIL_H_
17 #define FMI1_IMPORT_UTIL_H_
18 
19 #include <JM/jm_callbacks.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
37 FMILIB_EXPORT char* fmi_import_mk_temp_dir(jm_callbacks* cb, const char* systemTempDir, const char* tempPrefix);
38 
46 
54 FMILIB_EXPORT char* fmi_import_create_URL_from_abs_path(jm_callbacks* cb, const char* absPath);
55 
59 FMILIB_EXPORT char* fmi_import_get_dll_path(const char* fmu_unzipped_path, const char* model_identifier, jm_callbacks* callBackFunctions);
60 
64 FMILIB_EXPORT char* fmi_import_get_model_description_path(const char* fmu_unzipped_path, jm_callbacks* callBackFunctions);
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* End of header file FMI1_IMPORT_UTIL_H_ */
FMILIB_EXPORT char * fmi_import_mk_temp_dir(jm_callbacks *cb, const char *systemTempDir, const char *tempPrefix)
Create a unique temporary directory.
FMILIB_EXPORT char * fmi_import_get_dll_path(const char *fmu_unzipped_path, const char *model_identifier, jm_callbacks *callBackFunctions)
#define FMILIB_EXPORT
Used to declare the public API of the library needed for dynamic linking.
FMILIB_EXPORT char * fmi_import_get_model_description_path(const char *fmu_unzipped_path, jm_callbacks *callBackFunctions)
FMILIB_EXPORT jm_status_enu_t fmi_import_rmdir(jm_callbacks *cb, const char *dir)
Remove directory and all it contents.
The callbacks struct is sent to all the modules in the library.
Definition: jm_callbacks.h:73
jm_status_enu_t
Return status codes.
Definition: jm_types.h:44
FMILIB_EXPORT char * fmi_import_create_URL_from_abs_path(jm_callbacks *cb, const char *absPath)
Create a file:// URL from absolute path.