Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
sapi_safety_violation.c File Reference

See sapi_safety_violation.h for behavior. More...

Include dependency graph for sapi_safety_violation.c:

Go to the source code of this file.

Functions

sapi_status_t sapi_safety_violation_register_handler (sapi_safety_violation_handler_t handler)
 Registers the single handler invoked by sapi_safety_violation_report(). Registering again replaces the previous handler (same convention as sapi_safestate_register_handler()).
void sapi_safety_violation_report (sapi_safety_violation_kind_t kind, const char *file, int32_t line, const char *message)
 Reports one violation to the registered handler, if any.

Variables

static sapi_safety_violation_handler_t s_handler = NULL

Detailed Description

See sapi_safety_violation.h for behavior.

Definition in file sapi_safety_violation.c.

Variable Documentation

◆ s_handler

sapi_safety_violation_handler_t s_handler = NULL
static

Definition at line 8 of file sapi_safety_violation.c.