FMI Library: part of JModelica.org
jm_types.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 JM_TYPES_H
17 #define JM_TYPES_H
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 #include <fmilib_config.h>
22 
33 typedef const char* jm_string;
35 typedef void* jm_voidp;
36 
38 typedef struct jm_name_ID_map_t {
39  jm_string name;
40  unsigned int ID;
42 
44 typedef enum {
49 
51 typedef enum {
61 
64 const char* jm_log_level_to_string(jm_log_level_enu_t level);
65 
67 #ifdef __cplusplus
68 }
69 #endif
70 
71 /* JM_TYPES_H */
72 #endif
Library configuration file generated by the build system.
void * jm_voidp
A void pointer.
Definition: jm_types.h:35
Unrecoverable errors.
Definition: jm_types.h:54
Non-critical issues.
Definition: jm_types.h:56
Mapping between a string and an integer ID.
Definition: jm_types.h:38
FMILIB_EXPORT const char * jm_log_level_to_string(jm_log_level_enu_t level)
Convert log level into a string.
struct jm_name_ID_map_t jm_name_ID_map_t
Mapping between a string and an integer ID.
jm_log_level_enu_t
Log levels supported via the logger functions in jm_callbacks.
Definition: jm_types.h:51
Debug messages. Only enabled if library is configured with FMILIB_ENABLE_LOG_LEVEL_DEBUG.
Definition: jm_types.h:59
Errors that may be not critical for some FMUs.
Definition: jm_types.h:55
#define FMILIB_EXPORT
Used to declare the public API of the library needed for dynamic linking.
unsigned int ID
Definition: jm_types.h:40
Verbose messages.
Definition: jm_types.h:58
Informative messages.
Definition: jm_types.h:57
const char * jm_string
A constant string.
Definition: jm_types.h:33
Must be first in this enum. May be usefull in application relying solely on jm_get_last_error() ...
Definition: jm_types.h:53
jm_string name
Definition: jm_types.h:39
jm_status_enu_t
Return status codes.
Definition: jm_types.h:44