LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
stdio_stream_env_t Struct Reference

Injected dependencies for the stdio_stream adapter. More...

#include <stdio_stream_types.h>

Collaboration diagram for stdio_stream_env_t:

Data Fields

const osal_stdio_ops_tstdio_ops
 Borrowed OSAL stdio operations table.
 
const osal_mem_ops_tmem
 Borrowed memory operations table for adapter-owned allocations.
 
stream_env_t port_env
 Borrowed stream port environment.
 

Detailed Description

This structure aggregates the borrowed runtime dependencies provided by the Composition Root and required by stdio_stream construction services.

Definition at line 56 of file stdio_stream_types.h.

Field Documentation

◆ mem

const osal_mem_ops_t* stdio_stream_env_t::mem

This table is used for backend allocation.

Definition at line 73 of file stdio_stream_types.h.

◆ port_env

stream_env_t stdio_stream_env_t::port_env

This environment is forwarded to stream_create() when constructing the public stream_t handle.

Definition at line 82 of file stdio_stream_types.h.

◆ stdio_ops

const osal_stdio_ops_t* stdio_stream_env_t::stdio_ops

This table is used to access the borrowed standard streams and the stdio primitives required by the adapter backend to implement the borrower-side stream operations.

Definition at line 65 of file stdio_stream_types.h.