FMI Library: part of JModelica.org
Macros | Typedefs | Functions
jm_portability.h File Reference
#include <fmilib_config.h>
#include "jm_callbacks.h"
#include <dlfcn.h>
#include "jm_types.h"

Go to the source code of this file.

Macros

#define DLL_HANDLE   void*
 

Typedefs

typedef void * jm_dll_function_ptr
 A function pointer as returned when DLL symbol is loaded. More...
 

Functions

DLL_HANDLE jm_portability_load_dll_handle (const char *dll_file_path)
 Load a dll/so library into the process and return a handle. More...
 
jm_status_enu_t jm_portability_free_dll_handle (DLL_HANDLE dll_handle)
 Unload a Dll and release the handle. More...
 
jm_status_enu_t jm_portability_load_dll_function (DLL_HANDLE dll_handle, char *dll_function_name, jm_dll_function_ptr *dll_function_ptrptr)
 Find a function in the Dll and return a function pointer. More...
 
charjm_portability_get_last_dll_error (void)
 Return error associated with Dll handling. More...
 
jm_status_enu_t jm_portability_get_current_working_directory (char *buffer, size_t len)
 Get current working directory name. More...
 
jm_status_enu_t jm_portability_set_current_working_directory (const char *cwd)
 Set current working directory. More...
 
const charjm_get_system_temp_dir ()
 Get system-wide temporary directory. More...
 
charjm_mkdtemp (jm_callbacks *cb, char *tmplt)
 Create a uniquely named temporary directory. More...
 
charjm_get_dir_abspath (jm_callbacks *cb, const char *dir, char *outPath, size_t len)
 Get absolute path to an existing directory. More...
 
charjm_mk_temp_dir (jm_callbacks *cb, const char *systemTempDir, const char *tempPrefix)
 Create a unique temporary directory. More...
 
charjm_create_URL_from_abs_path (jm_callbacks *cb, const char *absPath)
 Create a file:// URL from absolute path. More...
 
jm_status_enu_t jm_mkdir (jm_callbacks *cb, const char *dir)
 Make a directory. More...
 
jm_status_enu_t jm_rmdir (jm_callbacks *cb, const char *dir)
 Remove directory and all it contents. More...
 
FMILIB_EXPORT int jm_vsnprintf (char *str, size_t size, const char *fmt, va_list al)
 C89 compatible implementation of C99 vsnprintf. More...
 
FMILIB_EXPORT int jm_snprintf (char *str, size_t size, const char *fmt,...)
 C89 compatible implementation of C99 snprintf. More...
 

Detailed Description

Handling platform specific defines and functions.

Definition in file jm_portability.h.

Macro Definition Documentation

#define DLL_HANDLE   void*

Definition at line 26 of file jm_portability.h.