Safe Communication Framework 0.1.0 build feea4f9
ERTMS/ETCS safe communication (Subset-037 EuroRadio, Subset-098 RBC/RBC), CENELEC EN 50128 SIL 4 oriented
Loading...
Searching...
No Matches
version.c File Reference

REQ-SC-CORE-002 — runtime version + status string. More...

#include "safecomm/version.h"
#include "safecomm/status.h"
Include dependency graph for version.c:

Go to the source code of this file.

Functions

const char * safecomm_version (void)
 Runtime version string.
const char * safecomm_status_to_string (safecomm_status_t status)
 Human-readable name of a status code (for logs, never for control flow).

Detailed Description

REQ-SC-CORE-002 — runtime version + status string.

Definition in file version.c.

Function Documentation

◆ safecomm_version()

const char * safecomm_version ( void )

Runtime version string.

Returns
a static, never-NULL "MAJOR.MINOR.PATCH" string.

Definition at line 8 of file version.c.

◆ safecomm_status_to_string()

const char * safecomm_status_to_string ( safecomm_status_t status)

Human-readable name of a status code (for logs, never for control flow).

Parameters
statusa safecomm_status_t value.
Returns
a static, never-NULL string; "UNKNOWN" for an unrecognised value.

Definition at line 13 of file version.c.