Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
sapi_lifecycle.h
Go to the documentation of this file.
1
53#ifndef SAFEAPI_COMMON_LIFECYCLE_H
54#define SAFEAPI_COMMON_LIFECYCLE_H
55
56#include <stdbool.h>
57
59
60#ifdef __cplusplus
61extern "C" {
62#endif
63
76void sapi_lifecycle_lock(void);
77
88void sapi_lifecycle_unlock(void);
89
97
108
109#ifdef __cplusplus
110}
111#endif
112
113#endif /* SAFEAPI_COMMON_LIFECYCLE_H */
114 /* LIFECYCLE */
void sapi_lifecycle_lock(void)
Locks the application's setup phase.
bool sapi_lifecycle_is_locked(void)
sapi_status_t sapi_lifecycle_check_setup_allowed(void)
Convenience check for a setup-only constructor: call this as one of the first checks in any function ...
void sapi_lifecycle_unlock(void)
Unlocks the application's setup phase (setup is allowed again).
sapi_status_t
Common result/status codes.
Definition sapi_status.h:27
Common status/error codes returned by every Safe API Framework function. Shared across all OS Abstrac...