Cantera  3.2.0a5
Loading...
Searching...
No Matches
interfaces/clib/include/cantera_clib/clib_defs.h
Go to the documentation of this file.
1/**
2 * @file clib_defs.h
3 *
4 * @warning The generated CLib API is an experimental part of %Cantera and
5 * may be changed without notice.
6 */
7
8// This file is part of Cantera. See License.txt in the top-level directory or
9// at https://cantera.org/license.txt for license and copyright information.
10
11/**
12 * @defgroup CAPIindex Generated C Libraries
13 * @brief %Cantera's generated C interface (CLib).
14 * @warning The generated CLib API is an experimental part of %Cantera and
15 * may be changed without notice.
16 *
17 * %Cantera classes and generated CLib libraries have a one-to-one relationship.
18 * This section provides a list of all currently available libraries.
19 */
20
21#ifndef CLIB_DEFS_H
22#define CLIB_DEFS_H
23
24#include <stdlib.h>
25
26// Values returned for error conditions
27#ifndef ERR
28 #define ERR -999
29#endif
30
31#ifndef DERR
32 #define DERR -999.999
33#endif
34
35// Used by external logger
36enum LogLevel { INFO, WARN , ERROR };
37
38//! Represents a callback that is invoked to produce log output.
39typedef void
40 (*LogCallback)(enum LogLevel logLevel, const char* category, const char* message);
41
42#endif
void(* LogCallback)(enum LogLevel logLevel, const char *category, const char *message)
Represents a callback that is invoked to produce log output.