Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
sapi_log_backend.h
Go to the documentation of this file.
1
15#ifndef SAFEAPI_OS_LOG_BACKEND_H
16#define SAFEAPI_OS_LOG_BACKEND_H
17
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
32typedef struct sapi_log_backend_s
33{
37 void (*write)(sapi_log_level_t level, const char *tag, const char *message);
39
48
49#ifdef __cplusplus
50}
51#endif
52
53#endif /* SAFEAPI_OS_LOG_BACKEND_H */
54 /* LOG_BACKEND */
sapi_status_t sapi_log_register_backend(const sapi_log_backend_t *backend)
Registers the backend implementation used by sapi_log_init()/ sapi_log_write() (ADR-005 section 2....
Definition sapi_log.c:80
sapi_log_level_t
Log message severity, passed to sapi_log_write().
Definition sapi_log.h:34
sapi_status_t
Common result/status codes.
Definition sapi_status.h:27
OS Abstraction Layer - Logging/diagnostics service.
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...
Backend vtable: an integrator's implementation of the logging sink (ADR-005). Unlike every other OAL ...
sapi_status_t(*) init(void)
Backend implementation of sapi_log_init(). May be NULL.
void(*) write(sapi_log_level_t level, const char *tag, const char *message)
Backend implementation of sapi_log_write(). May be NULL.