|
Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
Network link service: validates parameters, then dispatches to the backend registered via sapi_netlink_register_backend() (ADR-005). See sapi_ipc.c for the pattern this follows. More...
#include "safeapi/oal/netlink/sapi_netlink.h"#include "safeapi/utils/lifecycle/sapi_lifecycle.h"#include "safeapi_backend/netlink/sapi_netlink_backend.h"Go to the source code of this file.
Functions | |
| sapi_status_t | sapi_netlink_register_backend (const sapi_netlink_backend_t *backend) |
| Registers the backend implementation used by every sapi_netlink_* call (ADR-005 section 2.1). Call once at startup. | |
| sapi_status_t | sapi_netlink_open (sapi_netlink_storage_t *storage, const sapi_netlink_config_t *config, sapi_netlink_handle_t *out_handle) |
| Establishes a point-to-point link: binds+accepts (LISTEN) or dials (CONNECT), per config->role. | |
| sapi_status_t | sapi_netlink_send (sapi_netlink_handle_t handle, const void *message, size_t message_size, sapi_duration_ms_t timeout_ms) |
| Sends one fixed-size message, blocking at most timeout_ms. | |
| sapi_status_t | sapi_netlink_receive (sapi_netlink_handle_t handle, void *out_message, size_t buffer_size, sapi_duration_ms_t timeout_ms) |
| Receives one fixed-size message, blocking at most timeout_ms. | |
| sapi_status_t | sapi_netlink_close (sapi_netlink_handle_t handle) |
| Closes a link. | |
Variables | |
| static const sapi_netlink_backend_t * | s_backend = NULL |
| Currently registered backend, or NULL if none (ADR-005). | |
Network link service: validates parameters, then dispatches to the backend registered via sapi_netlink_register_backend() (ADR-005). See sapi_ipc.c for the pattern this follows.
Definition in file sapi_netlink.c.
|
static |
Currently registered backend, or NULL if none (ADR-005).
Local makros Local types declarations Local variables declarations
Definition at line 18 of file sapi_netlink.c.