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

Backend vtable: an integrator's implementation of the network link service for a specific transport/target (ADR-005). Any slot may be NULL if unsupported by the backend (-> SAPI_STATUS_NOT_SUPPORTED). More...

#include <sapi_netlink_backend.h>

Data Fields

sapi_status_t(*) open (sapi_netlink_storage_t *storage, const sapi_netlink_config_t *config, sapi_netlink_handle_t *out_handle)
 Backend implementation of sapi_netlink_open(). May be NULL.
sapi_status_t(*) send (sapi_netlink_handle_t handle, const void *message, size_t message_size, sapi_duration_ms_t timeout_ms)
 Backend implementation of sapi_netlink_send(). May be NULL.
sapi_status_t(*) receive (sapi_netlink_handle_t handle, void *out_message, size_t buffer_size, sapi_duration_ms_t timeout_ms)
 Backend implementation of sapi_netlink_receive(). May be NULL.
sapi_status_t(*) close (sapi_netlink_handle_t handle)
 Backend implementation of sapi_netlink_close(). May be NULL.

Detailed Description

Backend vtable: an integrator's implementation of the network link service for a specific transport/target (ADR-005). Any slot may be NULL if unsupported by the backend (-> SAPI_STATUS_NOT_SUPPORTED).

Definition at line 32 of file sapi_netlink_backend.h.

Field Documentation

◆ open

sapi_status_t(*) sapi_netlink_backend_t::open(sapi_netlink_storage_t *storage, const sapi_netlink_config_t *config, sapi_netlink_handle_t *out_handle)

Backend implementation of sapi_netlink_open(). May be NULL.

Definition at line 35 of file sapi_netlink_backend.h.

◆ send

sapi_status_t(*) sapi_netlink_backend_t::send(sapi_netlink_handle_t handle, const void *message, size_t message_size, sapi_duration_ms_t timeout_ms)

Backend implementation of sapi_netlink_send(). May be NULL.

Definition at line 39 of file sapi_netlink_backend.h.

◆ receive

sapi_status_t(*) sapi_netlink_backend_t::receive(sapi_netlink_handle_t handle, void *out_message, size_t buffer_size, sapi_duration_ms_t timeout_ms)

Backend implementation of sapi_netlink_receive(). May be NULL.

Definition at line 42 of file sapi_netlink_backend.h.

◆ close

sapi_status_t(*) sapi_netlink_backend_t::close(sapi_netlink_handle_t handle)

Backend implementation of sapi_netlink_close(). May be NULL.

Definition at line 45 of file sapi_netlink_backend.h.


The documentation for this struct was generated from the following file: