Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
sapi_ipc_backend.h
Go to the documentation of this file.
1
15#ifndef SAFEAPI_OS_IPC_BACKEND_H
16#define SAFEAPI_OS_IPC_BACKEND_H
17
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
30typedef struct sapi_ipc_backend_s
31{
33 sapi_status_t (*create)(sapi_ipc_storage_t *storage,
34 const sapi_ipc_config_t *config,
35 sapi_ipc_handle_t *out_handle);
37 sapi_status_t (*send)(sapi_ipc_handle_t handle, const void *message,
38 size_t message_size, sapi_duration_ms_t timeout_ms);
40 sapi_status_t (*receive)(sapi_ipc_handle_t handle, void *out_message,
41 size_t buffer_size, sapi_duration_ms_t timeout_ms);
45
56
57#ifdef __cplusplus
58}
59#endif
60
61#endif /* SAFEAPI_OS_IPC_BACKEND_H */
62 /* IPC_BACKEND */
sapi_status_t sapi_ipc_register_backend(const sapi_ipc_backend_t *backend)
Registers the backend implementation used by every sapi_ipc_* call (ADR-005 section 2....
Definition sapi_ipc.c:25
struct sapi_ipc_impl_s * sapi_ipc_handle_t
Opaque handle to a created IPC channel, returned by sapi_ipc_create().
Definition sapi_ipc.h:34
sapi_status_t
Common result/status codes.
Definition sapi_status.h:27
uint32_t sapi_duration_ms_t
Definition sapi_types.h:27
OS Abstraction Layer - Inter-process/inter-task communication 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 IPC service for a specific OS/RTOS (ADR-005)....
sapi_status_t(*) send(sapi_ipc_handle_t handle, const void *message, size_t message_size, sapi_duration_ms_t timeout_ms)
Backend implementation of sapi_ipc_send(). May be NULL.
sapi_status_t(*) receive(sapi_ipc_handle_t handle, void *out_message, size_t buffer_size, sapi_duration_ms_t timeout_ms)
Backend implementation of sapi_ipc_receive(). May be NULL.
sapi_status_t(*) create(sapi_ipc_storage_t *storage, const sapi_ipc_config_t *config, sapi_ipc_handle_t *out_handle)
Backend implementation of sapi_ipc_create(). May be NULL.
sapi_status_t(*) destroy(sapi_ipc_handle_t handle)
Backend implementation of sapi_ipc_destroy(). May be NULL.
Configuration for sapi_ipc_create().
Definition sapi_ipc.h:38