Composition Root helpers for the stream port.
More...


Go to the source code of this file.
Functions | |
| const stream_ops_t * | stream_default_ops (void) |
Return the default borrower-facing ops table for the stream port. | |
| stream_env_t | stream_default_env (const osal_mem_ops_t *mem_ops) |
Build a default stream_env_t from injected memory operations. | |
This header exposes small CR-facing helpers used to build default public stream port wiring objects.
Definition in file stream_cr_api.h.
| stream_env_t stream_default_env | ( | const osal_mem_ops_t * | mem_ops | ) |
| [in] | mem_ops | Memory operations to expose through the returned environment. |
stream_env_t such that ret.mem == mem_ops.stream_env_t. | const stream_ops_t * stream_default_ops | ( | void | ) |
The returned table exposes the default public borrower operations of the stream port.
NULL pointer to a well-formed stream_ops_t.ret->read != NULLret->write != NULLret->flush != NULL