Cantera  3.2.0a2
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 "cantera/base/config.h"
25#include <stdlib.h>
26
27// Values returned for error conditions
28#ifndef ERR
29 #define ERR -999
30#endif
31
32#ifndef DERR
33 #define DERR -999.999
34#endif
35
36// Used by external logger
37enum LogLevel { INFO, WARN , ERROR };
38
39//! Represents a callback that is invoked to produce log output.
40typedef void
41 (*LogCallback)(enum LogLevel logLevel, const char* category, const char* message);
42
43#endif
void(* LogCallback)(enum LogLevel logLevel, const char *category, const char *message)
Represents a callback that is invoked to produce log output.