Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
rte_osadapter.c File Reference

OS Abstraction Layer - Master OSAdapter and Socket Registration. More...

Include dependency graph for rte_osadapter.c:

Go to the source code of this file.

Functions

rte_status_t rte_osadapter_register_socket_ops (const rte_os_socket_ops_t *ops)
 Registers the active OSAdapter's raw socket operations.
const rte_os_socket_ops_t * rte_osadapter_get_socket_ops (void)
 Retrieves the active OSAdapter's raw socket operations.
rte_status_t rte_osadapter_register_all (const rte_osadapter_bundle_t *bundle)
 Registers all OSAdapter interfaces at once from an OSAdapter bundle.

Variables

static const rte_os_socket_ops_t * s_socket_ops = NULL

Detailed Description

OS Abstraction Layer - Master OSAdapter and Socket Registration.

Compliant with CENELEC EN 50128 SIL 4 and MISRA C:2012.

Definition in file rte_osadapter.c.

Function Documentation

◆ rte_osadapter_register_all()

rte_status_t rte_osadapter_register_all ( const rte_osadapter_bundle_t * bundle)

Registers all OSAdapter interfaces at once from an OSAdapter bundle.

Parameters
bundlePointer to bundle with valid vtables. Must not be NULL.
Returns
RTE_STATUS_OK on success, RTE_STATUS_INVALID_PARAM if bundle is NULL.

Definition at line 27 of file rte_osadapter.c.

Variable Documentation

◆ s_socket_ops

const rte_os_socket_ops_t* s_socket_ops = NULL
static

Definition at line 10 of file rte_osadapter.c.